aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-17 22:32:43 +0800
committerUnknwon <u@gogs.io>2015-08-17 22:32:43 +0800
commitd17f102339c8542cfb5e81ab6a705b1b64651f51 (patch)
treee3efb3c98adc93a619631325a4eeeee3a79ee898
parent862477e3a1122376b2da19fea553209fa225b7a1 (diff)
downloadgitea-d17f102339c8542cfb5e81ab6a705b1b64651f51.tar.gz
gitea-d17f102339c8542cfb5e81ab6a705b1b64651f51.zip
try to fix HTTP ops not GC
-rw-r--r--routers/repo/http.go1
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)