We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df231b7 commit ac2304fCopy full SHA for ac2304f
routers/repo/http.go
@@ -332,8 +332,9 @@ func HTTP(ctx *context.Context) {
332
Env: environ,
333
}
334
335
+ r.URL.Path = strings.ToLower(r.URL.Path) // blue: In case some repo name has upper case name
336
+
337
for _, route := range routes {
- r.URL.Path = strings.ToLower(r.URL.Path) // blue: In case some repo name has upper case name
338
if m := route.reg.FindStringSubmatch(r.URL.Path); m != nil {
339
if setting.Repository.DisableHTTPGit {
340
w.WriteHeader(http.StatusForbidden)
0 commit comments