Fix: close http Response body on provider (#1154)

This commit is contained in:
Keyi Xie
2020-12-29 11:28:22 +08:00
committed by GitHub
parent 09c28e0355
commit 02d029dd2d
3 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func (hc *h2Conn) establishConn() error {
},
}
// it will be close at : `func (hc *h2Conn) Close() error`
res, err := hc.ClientConn.RoundTrip(&req)
if err != nil {
return err