mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 00:04:19 +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"}
|
allow := []string{http.MethodOptions, "PROPFIND", "REPORT", "DELETE", "MKCOL"}
|
||||||
w.Header().Add("DAV", strings.Join(caps, ", "))
|
w.Header().Add("DAV", strings.Join(caps, ", "))
|
||||||
w.Header().Add("Allow", strings.Join(allow, ", "))
|
w.Header().Add("Allow", strings.Join(allow, ", "))
|
||||||
w.WriteHeader(http.StatusNoContent)
|
w.WriteHeader(http.StatusOK)
|
||||||
case "PROPFIND":
|
case "PROPFIND":
|
||||||
if err := servePrincipalPropfind(w, r, options); err != nil {
|
if err := servePrincipalPropfind(w, r, options); err != nil {
|
||||||
internal.ServeError(w, err)
|
internal.ServeError(w, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user