Explorar el Código

fix a small nit (#11834)

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

Signed-off-by: a101211279 <1012112796@qq.com>
tags/v1.13.0-rc1
赵智超 hace 4 años
padre
commit
ac2304f7a0
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      routers/repo/http.go

+ 2
- 1
routers/repo/http.go Ver fichero

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

Cargando…
Cancelar
Guardar