mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-23 00:34:23 +00:00
webdav: advertise class 3 support in OPTIONS
This commit is contained in:
parent
0687eb165e
commit
dbdd296d38
@ -69,7 +69,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, PROPFIND")
|
w.Header().Add("Allow", "OPTIONS, GET, HEAD, PROPFIND")
|
||||||
w.Header().Add("DAV", "1")
|
w.Header().Add("DAV", "1, 3")
|
||||||
w.WriteHeader(http.StatusNoContent)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user