aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fa74d11..eac9ede 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -455,7 +455,7 @@ is_stream(#http_state{streams=Streams}, StreamRef) ->
cancel_stream(State=#http_state{streams=Streams}, StreamRef) ->
Streams2 = [case Ref of
StreamRef ->
- {Ref, false};
+ Tuple#stream{is_alive=false};
_ ->
Tuple
end || Tuple = #stream{ref=Ref} <- Streams],