소스 검색

try to fix HTTP ops not GC

Unknwon 9 년 전
부모
커밋
d17f102339
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)