Explorar el Código

try to fix HTTP ops not GC

Unknwon hace 9 años
padre
commit
d17f102339
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      routers/repo/http.go

+ 1 - 0
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)