aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/githttp.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-02-17 14:13:17 +0800
committerGitHub <noreply@github.com>2025-02-16 22:13:17 -0800
commitf35850f48ed0bd40ec288e2547ac687a7bf1746c (patch)
tree27191daf6a2ca9e216710090bba303e26dafb157 /routers/web/githttp.go
parent69de5a65c25b08b501ed1e8123fcdad43f382213 (diff)
downloadgitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.tar.gz
gitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.zip
Refactor error system (#33610)
Diffstat (limited to 'routers/web/githttp.go')
-rw-r--r--routers/web/githttp.go2
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() {