]> source.dussan.org Git - gitea.git/commitdiff
try to fix HTTP ops not GC
authorUnknwon <u@gogs.io>
Mon, 17 Aug 2015 14:32:43 +0000 (22:32 +0800)
committerUnknwon <u@gogs.io>
Mon, 17 Aug 2015 14:32:43 +0000 (22:32 +0800)
routers/repo/http.go

index abf6134f23c5008d6285cf096827aa0a51b8812a..4d86f392607dbc9cabc79b88f543ccfb9e44849d 100644 (file)
@@ -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)