diff options
Diffstat (limited to 'routers')
-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 abf6134f23..4d86f39260 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -292,6 +292,7 @@ func serviceReceivePack(hr handler) { func serviceRpc(rpc string, hr handler) { w, r, dir := hr.w, hr.r, hr.Dir + defer r.Body.Close() if !hasAccess(r, hr.Config, dir, rpc, true) { renderNoAccess(w) |