mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-22 19:09:58 +00:00
drive: rewrite LOCK paths
Fixes #12097 Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:

committed by
Percy Wegmann

parent
87f00d76c4
commit
59848fe14b
@@ -151,6 +151,9 @@ func (s *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
// WebDAV's locking code compares the lock resources with the request's
|
||||
// host header, set this to empty to avoid mismatches.
|
||||
r.Host = ""
|
||||
h.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user