aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 6b4dec8149..695e758cdb 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -94,7 +94,7 @@ func HTTP(ctx *context.Context) {
ctx.HandleText(401, "reverse proxy login error, got error while running GetUserByName")
return
}
- }else{
+ } else {
authHead := ctx.Req.Header.Get("Authorization")
if len(authHead) == 0 {
ctx.Resp.Header().Set("WWW-Authenticate", "Basic realm=\".\"")