summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2016-12-30 15:26:05 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-30 20:41:10 +0100
commit6510e5775896343f0a69c47ad31c439c7310ff34 (patch)
tree875044ba5fcd58a4cc7e7d1b1215f7217963a30d /routers/repo/http.go
parentd0490c187cf6720ed4d0e8ce14c8706e61adaf1f (diff)
downloadgitea-6510e5775896343f0a69c47ad31c439c7310ff34.tar.gz
gitea-6510e5775896343f0a69c47ad31c439c7310ff34.zip
fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
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=\".\"")