diff options
author | Loïc Hoguin <[email protected]> | 2013-09-02 18:46:51 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-02 18:46:51 +0200 |
commit | f700f3387820a6a3bd65df56d7c953554e9ab52a (patch) | |
tree | b80a20817118ae5d3523683f8fd39578f8a32977 /src/gun_spdy.erl | |
parent | 38a19704a4e0ffb7103384a8b3decb2d75a4e978 (diff) | |
download | gun-f700f3387820a6a3bd65df56d7c953554e9ab52a.tar.gz gun-f700f3387820a6a3bd65df56d7c953554e9ab52a.tar.bz2 gun-f700f3387820a6a3bd65df56d7c953554e9ab52a.zip |
cow_spdy:split/1 only returns false on failure
Diffstat (limited to 'src/gun_spdy.erl')
-rw-r--r-- | src/gun_spdy.erl | 4 |
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, |