From: Unknwon Date: Mon, 17 Aug 2015 14:32:43 +0000 (+0800) Subject: try to fix HTTP ops not GC X-Git-Tag: v0.9.99~1217 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d17f102339c8542cfb5e81ab6a705b1b64651f51;p=gitea.git try to fix HTTP ops not GC --- 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)