Permalink
Browse files

Accounted for empty lists as well

  • Loading branch information...
1 parent 8dfdac8 commit 2c709e3cad55f3fb3c8eb3621bdf6342ab8e8e7b @Mistagrooves Mistagrooves committed Feb 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/ibrowse_http_client.erl
@@ -566,6 +566,10 @@ do_send_body1(Source, Resp, State, TE) ->
do_send_body({Source}, State, TE);
{ok, <<>>, New_source_state} ->
do_send_body({Source, New_source_state}, State, TE);
+ {ok, []} ->
+ do_send_body({Source}, State, TE);
+ {ok, [], New_source_state} ->
+ do_send_body({Source, New_source_state}, State, TE);
{ok, Data} ->
do_send(maybe_chunked_encode(Data, TE), State),
do_send_body({Source}, State, TE);

0 comments on commit 2c709e3

Please sign in to comment.