aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-02 18:46:51 +0200
committerLoïc Hoguin <[email protected]>2013-09-02 18:46:51 +0200
commitf700f3387820a6a3bd65df56d7c953554e9ab52a (patch)
treeb80a20817118ae5d3523683f8fd39578f8a32977 /src
parent38a19704a4e0ffb7103384a8b3decb2d75a4e978 (diff)
downloadgun-f700f3387820a6a3bd65df56d7c953554e9ab52a.tar.gz
gun-f700f3387820a6a3bd65df56d7c953554e9ab52a.tar.bz2
gun-f700f3387820a6a3bd65df56d7c953554e9ab52a.zip
cow_spdy:split/1 only returns false on failure
Diffstat (limited to 'src')
-rw-r--r--src/gun_spdy.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_spdy.erl b/src/gun_spdy.erl
index 48eabc5..546189a 100644
--- a/src/gun_spdy.erl
+++ b/src/gun_spdy.erl
@@ -55,8 +55,8 @@ handle_loop(Data, State=#spdy_state{zinf=Zinf}) ->
{true, Frame, Rest} ->
P = cow_spdy:parse(Frame, Zinf),
handle_frame(Rest, State, P);
- {false, Rest} ->
- State#spdy_state{buffer=Rest}
+ false ->
+ State#spdy_state{buffer=Data}
end.
handle_frame(Rest, State=#spdy_state{owner=Owner,