aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r--src/gun_http.erl2
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]),