mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-21 15:54:13 +00:00
Change this too
This commit is contained in:
parent
c4454bfa01
commit
9094f8327e
@ -292,7 +292,7 @@ func ServePrincipal(w http.ResponseWriter, r *http.Request, options *ServePrinci
|
||||
allow := []string{http.MethodOptions, "PROPFIND", "REPORT", "DELETE", "MKCOL"}
|
||||
w.Header().Add("DAV", strings.Join(caps, ", "))
|
||||
w.Header().Add("Allow", strings.Join(allow, ", "))
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "PROPFIND":
|
||||
if err := servePrincipalPropfind(w, r, options); err != nil {
|
||||
internal.ServeError(w, err)
|
||||
|
Loading…
Reference in New Issue
Block a user