diff options
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 65a5d5fa..31d8ab13 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -484,6 +484,7 @@ func HTTPBackend(ctx *context.Context, cfg *serviceConfig) http.HandlerFunc { w.Write([]byte("Interacting with repositories by HTTP protocol is not allowed")) return } + if route.method != r.Method { if r.Proto == "HTTP/1.1" { w.WriteHeader(http.StatusMethodNotAllowed) |