Browse Source

fix a small nit (#11834)

As title, run this line in one time is enough.

Signed-off-by: a1012112796 <1012112796@qq.com>
for-closed-social
赵智超 4 years ago
committed by GitHub
parent
commit
ac2304f7a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/http.go

+ 2
- 1
routers/repo/http.go View File

@ -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)

Loading…
Cancel
Save