mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
try to fix HTTP ops not GC
This commit is contained in:
parent
862477e3a1
commit
d17f102339
@ -292,6 +292,7 @@ func serviceReceivePack(hr handler) {
|
|||||||
|
|
||||||
func serviceRpc(rpc string, hr handler) {
|
func serviceRpc(rpc string, hr handler) {
|
||||||
w, r, dir := hr.w, hr.r, hr.Dir
|
w, r, dir := hr.w, hr.r, hr.Dir
|
||||||
|
defer r.Body.Close()
|
||||||
|
|
||||||
if !hasAccess(r, hr.Config, dir, rpc, true) {
|
if !hasAccess(r, hr.Config, dir, rpc, true) {
|
||||||
renderNoAccess(w)
|
renderNoAccess(w)
|
||||||
|
Loading…
Reference in New Issue
Block a user