Explorar o código

[dav] 401 instead of 501 for deactivated webdav

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
af6fadb9aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
 func Dav(c *gctx.Context, handler *webdav.Handler) {
 	if !setting.WebDav.On {
 	if !setting.WebDav.On {
-		c.WriteHeader(http.StatusNotImplemented)
+		c.WriteHeader(http.StatusUnauthorized)
 		return
 		return
 	}
 	}
 	if checkPerms(c) != nil {
 	if checkPerms(c) != nil {