mirror of
https://github.com/minio/minio.git
synced 2025-01-22 20:23:14 -05:00
fix: missing close on error for keepAlive connections (#13109)
Add missing close when error is reported before body is done.
This commit is contained in:
parent
514b2d6f12
commit
76b3d3c559
@ -769,6 +769,7 @@ func keepHTTPReqResponseAlive(w http.ResponseWriter, r *http.Request) (resp func
|
||||
} else {
|
||||
w.Write([]byte{0})
|
||||
}
|
||||
close(doneCh)
|
||||
return
|
||||
}
|
||||
defer close(doneCh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user