diff options
author | Unknwon <u@gogs.io> | 2015-08-17 22:32:43 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-17 22:32:43 +0800 |
commit | d17f102339c8542cfb5e81ab6a705b1b64651f51 (patch) | |
tree | e3efb3c98adc93a619631325a4eeeee3a79ee898 /routers | |
parent | 862477e3a1122376b2da19fea553209fa225b7a1 (diff) | |
download | gitea-d17f102339c8542cfb5e81ab6a705b1b64651f51.tar.gz gitea-d17f102339c8542cfb5e81ab6a705b1b64651f51.zip |
try to fix HTTP ops not GC
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) |