Browse Source

[dav] 401 instead of 501 for deactivated webdav

cgars 7 years ago
parent
commit
af6fadb9aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/dav/dav.go

+ 1 - 1
pkg/dav/dav.go

@@ -30,7 +30,7 @@ const ANNEXPEEKSIZE = 1024
 
 func Dav(c *gctx.Context, handler *webdav.Handler) {
 	if !setting.WebDav.On {
-		c.WriteHeader(http.StatusNotImplemented)
+		c.WriteHeader(http.StatusUnauthorized)
 		return
 	}
 	if checkPerms(c) != nil {