summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
authorThibault Meyer <meyer.thibault@gmail.com>2016-10-04 18:58:14 +0200
committerThibault Meyer <meyer.thibault@gmail.com>2016-10-04 18:58:14 +0200
commit93f1eabe3087ac723f8f404def8dba40359f0d64 (patch)
treee3548dc23d09ddd9cfb93393b5ca1961e32cc2b6 /routers/repo/http.go
parent9d66497abca96905fbeba53bf8983301710d6064 (diff)
downloadgitea-93f1eabe3087ac723f8f404def8dba40359f0d64.tar.gz
gitea-93f1eabe3087ac723f8f404def8dba40359f0d64.zip
rename variable + fix wiki link
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go2
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