diff options
author | Loïc Hoguin <[email protected]> | 2012-05-04 06:32:12 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-05-04 06:32:12 +0200 |
commit | 0406a632dca8afbc1b22a0b4d556aa0004284b2b (patch) | |
tree | a6124942543c9f2be6eadc616584cadf071ac1b2 /src/cowboy_client.erl | |
parent | 1524ba4f39f03b51dda7d20ec69fb5fa7ba09bad (diff) | |
parent | 57fda142175a7fd0340d9030e0477c16e13dc5f5 (diff) | |
download | cowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.tar.gz cowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.tar.bz2 cowboy-0406a632dca8afbc1b22a0b4d556aa0004284b2b.zip |
Merge branch 'response-hook'
Diffstat (limited to 'src/cowboy_client.erl')
-rw-r--r-- | src/cowboy_client.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cowboy_client.erl b/src/cowboy_client.erl index 21931e1..e46619f 100644 --- a/src/cowboy_client.erl +++ b/src/cowboy_client.erl @@ -158,7 +158,9 @@ response_body_loop(Client, Acc) -> {ok, Data, Client2} -> response_body_loop(Client2, << Acc/binary, Data/binary >>); {done, Client2} -> - {ok, Acc, Client2} + {ok, Acc, Client2}; + {error, Reason} -> + {error, Reason} end. skip_body(Client=#client{state=response_body}) -> |