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 0377979e8b..2b79dddbbd 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -91,7 +91,7 @@ func httpBase(ctx *context.Context) (h *serviceHandler) {
strings.HasSuffix(ctx.Req.URL.Path, "git-upload-archive") {
isPull = true
} else {
- isPull = (ctx.Req.Method == "GET")
+ isPull = ctx.Req.Method == "GET"
}
var accessMode models.AccessMode