Change this too

This commit is contained in:
Melon 2024-07-19 00:08:18 +01:00 committed by Captain ALM
parent c4454bfa01
commit 9094f8327e
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -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)