mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: add missing PROPFIND to OPTIONS response
This commit is contained in:
parent
4c4624e225
commit
0687eb165e
@ -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 {
|
||||
w.Header().Add("Allow", "OPTIONS, GET, HEAD")
|
||||
w.Header().Add("Allow", "OPTIONS, GET, HEAD, PROPFIND")
|
||||
w.Header().Add("DAV", "1")
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user