mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
Respond with 200 OK instead of 204 No Content
This commit is contained in:
parent
757f4a8c2a
commit
c4454bfa01
@ -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("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)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user