2
0
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:
ymmt2005 2016-03-14 16:35:48 +09:00
parent 056614c7a0
commit 257beb2092

View File

@ -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)