Refactor error system (#33610)
This commit is contained in:
parent
69de5a65c2
commit
f35850f48e
184 changed files with 2100 additions and 2106 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue