Browse Source

[dav] 401 instead of 501 for deactivated webdav

cgars 7 năm trước cách đây
mục cha
commit
af6fadb9aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {