Respond with 200 OK instead of 204 No Content

This commit is contained in:
Melon 2024-07-18 23:58:15 +01:00 committed by Captain ALM
parent 757f4a8c2a
commit c4454bfa01
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -125,7 +125,7 @@ func (h *Handler) handleOptions(w http.ResponseWriter, r *http.Request) error {
w.Header().Add("DAV", strings.Join(caps, ", "))
w.Header().Add("Allow", strings.Join(allow, ", "))
w.WriteHeader(http.StatusNoContent)
w.WriteHeader(http.StatusOK)
return nil
}