Skip to content

Commit

Permalink
allow empty chunks in body streams
Browse files Browse the repository at this point in the history
  • Loading branch information
justin@basho.com committed Sep 4, 2009
1 parent 048a0ce commit 66ae592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webmachine_request_srv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ send_stream_body(Socket, {Data, done}, SoFar) ->
Size = send_chunk(Socket, Data),
send_chunk(Socket, <<>>),
Size + SoFar;
send_stream_body(Socket, {<<>>, Next}, SoFar) ->
send_stream_body(Socket, Next(), SoFar);
send_stream_body(Socket, {[], Next}, SoFar) ->
send_stream_body(Socket, Next(), SoFar);
send_stream_body(Socket, {Data, Next}, SoFar) ->
Size = send_chunk(Socket, Data),
send_stream_body(Socket, Next(), Size + SoFar).
Expand Down

0 comments on commit 66ae592

Please sign in to comment.