diff options
author | Peter Hizalev <[email protected]> | 2018-01-20 18:53:54 -0800 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-01-21 18:23:51 +0100 |
commit | ac66d46116b5519aefad8d216b97a6be35d758eb (patch) | |
tree | 0b4dd94bc87067a2fdf832c90bcc7d47b393554a | |
parent | b297499e13ce24806cc354ea601292b30cbb979f (diff) | |
download | gun-ac66d46116b5519aefad8d216b97a6be35d758eb.tar.gz gun-ac66d46116b5519aefad8d216b97a6be35d758eb.tar.bz2 gun-ac66d46116b5519aefad8d216b97a6be35d758eb.zip |
Fix HTTP/1 cancel #140
-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 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], |