aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_client.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-05-04 06:32:12 +0200
committerLoïc Hoguin <[email protected]>2012-05-04 06:32:12 +0200
commit0406a632dca8afbc1b22a0b4d556aa0004284b2b (patch)
treea6124942543c9f2be6eadc616584cadf071ac1b2 /src/cowboy_client.erl
parent1524ba4f39f03b51dda7d20ec69fb5fa7ba09bad (diff)
parent57fda142175a7fd0340d9030e0477c16e13dc5f5 (diff)
downloadcowboy-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.erl4
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}) ->