diff options
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 47cc199457..65a5d5facf 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -479,7 +479,7 @@ func HTTPBackend(ctx *context.Context, cfg *serviceConfig) http.HandlerFunc { 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 { + if setting.Repository.DisableHTTPGit { w.WriteHeader(http.StatusForbidden) w.Write([]byte("Interacting with repositories by HTTP protocol is not allowed")) return |