summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 1eec033882..0481b46bde 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -332,8 +332,9 @@ func HTTP(ctx *context.Context) {
Env: environ,
}
+ r.URL.Path = strings.ToLower(r.URL.Path) // blue: In case some repo name has upper case name
+
for _, route := range routes {
- r.URL.Path = strings.ToLower(r.URL.Path) // blue: In case some repo name has upper case name
if m := route.reg.FindStringSubmatch(r.URL.Path); m != nil {
if setting.Repository.DisableHTTPGit {
w.WriteHeader(http.StatusForbidden)