From dbdd296d38454989d019ca979468be3aef20275c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 15 Jan 2020 23:17:43 +0100 Subject: [PATCH] webdav: advertise class 3 support in OPTIONS --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 637960d..24a50cd 100644 --- a/server.go +++ b/server.go @@ -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 { w.Header().Add("Allow", "OPTIONS, GET, HEAD, PROPFIND") - w.Header().Add("DAV", "1") + w.Header().Add("DAV", "1, 3") w.WriteHeader(http.StatusNoContent) return nil }