aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorlunnyxiao <xiaolunwen@gmail.com>2014-09-26 12:17:46 +0800
committerlunnyxiao <xiaolunwen@gmail.com>2014-09-26 12:17:46 +0800
commitd1911658e15c68cee495530ca7dee785c12407d4 (patch)
tree54f5946c1c9a9bd3fcf2c6514da793cf1ddbc3ef /routers
parentc8b50975bc2c6e11607b62278840299745caffe9 (diff)
downloadgitea-d1911658e15c68cee495530ca7dee785c12407d4.tar.gz
gitea-d1911658e15c68cee495530ca7dee785c12407d4.zip
remove debug info
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/http.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index a98478c9f5..56c85bf59a 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -103,7 +103,6 @@ func Http(ctx *middleware.Context) {
// check access
if askAuth {
baHead := ctx.Req.Header.Get("Authorization")
- fmt.Println("auth:", baHead)
if baHead == "" {
authRequired(ctx)
return
@@ -122,8 +121,6 @@ func Http(ctx *middleware.Context) {
return
}
- fmt.Println("auth2:", authUsername, passwd)
-
authUser, err = models.GetUserByName(authUsername)
if err != nil {
ctx.Handle(401, "no basic auth and digit auth", nil)
@@ -137,8 +134,6 @@ func Http(ctx *middleware.Context) {
return
}
- fmt.Println("passwd is right")
-
if !isPublicPull {
var tp = models.WRITABLE
if isPull {