webdav: add missing PROPFIND to OPTIONS response
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user