mirror of
https://github.com/stefan01/transocks.git
synced 2025-02-22 03:30:45 +07:00
[http_tunnel] close response body.
This commit is contained in:
parent
056614c7a0
commit
257beb2092
@ -113,6 +113,7 @@ PARSE:
|
||||
c.Close()
|
||||
return nil, e
|
||||
}
|
||||
resp.Body.Close()
|
||||
if resp.StatusCode != 200 {
|
||||
c.Close()
|
||||
return nil, fmt.Errorf("proxy returns %s", resp.Status)
|
||||
|
Loading…
Reference in New Issue
Block a user