aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-25 13:46:20 +0100
committerLoïc Hoguin <[email protected]>2015-03-25 13:46:20 +0100
commit13add09e80b931165f720a2b8b4d90fc890e0d6c (patch)
treea25320dc088c956581c9106c3d23f071600e9c11 /src/gun.erl
parent83d8b63b8abb46b374439c8c8571091968af6260 (diff)
downloadgun-13add09e80b931165f720a2b8b4d90fc890e0d6c.tar.gz
gun-13add09e80b931165f720a2b8b4d90fc890e0d6c.tar.bz2
gun-13add09e80b931165f720a2b8b4d90fc890e0d6c.zip
Fix the order of stream references in gun_push message
Should be simpler if the original stream reference is at the same position in all messages.
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 3569cf5..b7ffcd3 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -247,9 +247,8 @@ await(ServerPid, StreamRef, Timeout, MRef) ->
{response, IsFin, Status, Headers};
{gun_data, ServerPid, StreamRef, IsFin, Data} ->
{data, IsFin, Data};
- {gun_push, ServerPid, StreamRef, AssocToStreamRef,
- Method, Host, Path, Headers} ->
- {push, AssocToStreamRef, Method, Host, Path, Headers};
+ {gun_push, ServerPid, StreamRef, NewStreamRef, Method, Host, Path, Headers} ->
+ {push, NewStreamRef, Method, Host, Path, Headers};
{gun_error, ServerPid, StreamRef, Reason} ->
{error, Reason};
{gun_error, ServerPid, Reason} ->