From 13add09e80b931165f720a2b8b4d90fc890e0d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 25 Mar 2015 13:46:20 +0100 Subject: 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. --- src/gun_spdy.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gun_spdy.erl') diff --git a/src/gun_spdy.erl b/src/gun_spdy.erl index 4db4822..faaf05e 100644 --- a/src/gun_spdy.erl +++ b/src/gun_spdy.erl @@ -89,8 +89,8 @@ handle_frame(Rest, State=#spdy_state{owner=Owner, case get_stream_by_id(AssocToStreamID, State) of #stream{ref=AssocToStreamRef} -> StreamRef = make_ref(), - Owner ! {gun_push, self(), StreamRef, - AssocToStreamRef, Method, Host, Path, Headers}, + Owner ! {gun_push, self(), AssocToStreamRef, + StreamRef, Method, Host, Path, Headers}, handle_loop(Rest, new_stream(StreamID, StreamRef, not IsFin, false, Version, State)); false -> -- cgit v1.2.3