forked from ms/transocks
[http_tunnel] close response body.
This commit is contained in:
parent
056614c7a0
commit
257beb2092
@ -113,6 +113,7 @@ PARSE:
|
|||||||
c.Close()
|
c.Close()
|
||||||
return nil, e
|
return nil, e
|
||||||
}
|
}
|
||||||
|
resp.Body.Close()
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
c.Close()
|
c.Close()
|
||||||
return nil, fmt.Errorf("proxy returns %s", resp.Status)
|
return nil, fmt.Errorf("proxy returns %s", resp.Status)
|
||||||
|
Loading…
Reference in New Issue
Block a user