diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-02-17 14:13:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-16 22:13:17 -0800 |
commit | f35850f48ed0bd40ec288e2547ac687a7bf1746c (patch) | |
tree | 27191daf6a2ca9e216710090bba303e26dafb157 /routers/web/githttp.go | |
parent | 69de5a65c25b08b501ed1e8123fcdad43f382213 (diff) | |
download | gitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.tar.gz gitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.zip |
Refactor error system (#33610)
Diffstat (limited to 'routers/web/githttp.go')
-rw-r--r-- | routers/web/githttp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/githttp.go b/routers/web/githttp.go index 5831e6f523..8597ffe795 100644 --- a/routers/web/githttp.go +++ b/routers/web/githttp.go @@ -21,7 +21,7 @@ func addOwnerRepoGitHTTPRouters(m *web.Router) { if !ctx.IsSigned { // TODO: support digit auth - which would be Authorization header with digit ctx.Resp.Header().Set("WWW-Authenticate", `Basic realm="Gitea"`) - ctx.Error(http.StatusUnauthorized) + ctx.HTTPError(http.StatusUnauthorized) } } m.Group("/{username}/{reponame}", func() { |