]> source.dussan.org Git - gitea.git/commitdiff
remove debug info
authorlunnyxiao <xiaolunwen@gmail.com>
Fri, 26 Sep 2014 04:17:46 +0000 (12:17 +0800)
committerlunnyxiao <xiaolunwen@gmail.com>
Fri, 26 Sep 2014 04:17:46 +0000 (12:17 +0800)
routers/repo/http.go

index a98478c9f5713d69a724d9909dde22bf2ba28c97..56c85bf59a4c246c3bd9c8ee017500b3207f6cfd 100644 (file)
@@ -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 {