Commits

Anonymous committed 73b89d4

allow empty chunks in body streams

  • Participants
  • Parent commits e52a26b

Comments (0)

Files changed (1)

File src/webmachine_request_srv.erl

     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).