webdav: add missing PROPFIND to OPTIONS response

This commit is contained in:
Simon Ser 2020-01-15 23:10:51 +01:00
parent 4c4624e225
commit 0687eb165e
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -68,7 +68,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
func (h *Handler) handleOptions(w http.ResponseWriter, r *http.Request) error { func (h *Handler) handleOptions(w http.ResponseWriter, r *http.Request) error {
w.Header().Add("Allow", "OPTIONS, GET, HEAD") w.Header().Add("Allow", "OPTIONS, GET, HEAD, PROPFIND")
w.Header().Add("DAV", "1") w.Header().Add("DAV", "1")
w.WriteHeader(http.StatusNoContent) w.WriteHeader(http.StatusNoContent)
return nil return nil