diff options
author | Loïc Hoguin <[email protected]> | 2019-09-20 17:14:35 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-09-22 16:46:44 +0200 |
commit | 4664da8703d4a1d5225fd71e1fc3164f9441ff36 (patch) | |
tree | 56a15d5a41e7435086f69760e90dc4ce69de735a /src/gun_http.erl | |
parent | 07e79aa3a70546fe4419b94cbf41c38a6eb039a1 (diff) | |
download | gun-4664da8703d4a1d5225fd71e1fc3164f9441ff36.tar.gz gun-4664da8703d4a1d5225fd71e1fc3164f9441ff36.tar.bz2 gun-4664da8703d4a1d5225fd71e1fc3164f9441ff36.zip |
Add more tests with two Socks5 proxies
We now properly support TCP across two TLS proxies, and
TLS across two TCP/TLS proxies.
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r-- | src/gun_http.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl index 44575bf..ce174ce 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -298,7 +298,7 @@ handle_head(Data, State=#http_state{version=ClientVersion, content_handlers=Hand }, EvHandlerState0), %% We expect there to be no additional data after the CONNECT response. <<>> = Rest2, - State2 = end_stream(State#http_state{streams=[Stream|Tail]}), + _ = end_stream(State#http_state{streams=[Stream|Tail]}), NewHost = maps:get(host, Destination), NewPort = maps:get(port, Destination), Protocols = maps:get(protocols, Destination, [http]), |