Permalink
Browse files

Merge pull request #7 from tsloughter/master

fix: added back catch of 4 tuple response to transferdecode
  • Loading branch information...
2 parents 33707e9 + 719f256 commit 9f5e0411bdb504fc5578f545bccdee7dd17edff8 @benoitc committed Sep 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/hackney_response.erl
View
@@ -207,6 +207,9 @@ transfer_decode(Data, Client=#client{
{done, Data2, Rest} ->
Client2 = transfer_decode_done(Rest, Client),
content_decode(ContentDecode, Data2, Client2);
+ {done, Data2, _Length, Rest} ->
+ Client2 = transfer_decode_done(Rest, Client),
+ content_decode(ContentDecode, Data2, Client2);
done ->
Client2 = transfer_decode_done(<<>>, Client),
{done, Client2};

0 comments on commit 9f5e041

Please sign in to comment.