mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 19:58:36 +00:00
introduce git-shell
This commit is contained in:
@@ -31,7 +31,7 @@ import (
|
||||
func authRequired(ctx *middleware.Context) {
|
||||
ctx.Resp.Header().Set("WWW-Authenticate", "Basic realm=\".\"")
|
||||
ctx.Data["ErrorMsg"] = "no basic auth and digit auth"
|
||||
ctx.HTML(401, base.TplName("status/401"))
|
||||
ctx.Error(401)
|
||||
}
|
||||
|
||||
func HTTP(ctx *middleware.Context) {
|
||||
|
Reference in New Issue
Block a user