瀏覽代碼

[dav] 401 instead of 501 for deactivated webdav

cgars 7 年之前
父節點
當前提交
af6fadb9aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {