From 4664da8703d4a1d5225fd71e1fc3164f9441ff36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 20 Sep 2019 17:14:35 +0200 Subject: Add more tests with two Socks5 proxies We now properly support TCP across two TLS proxies, and TLS across two TCP/TLS proxies. --- src/gun_http.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gun_http.erl') 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]), -- cgit v1.2.3