Commits

Anonymous committed 403802e

(via Dave Smith) avoid sending double empty chunk

  • Participants
  • Parent commits eeeb672

Comments (0)

Files changed (1)

File src/webmachine_request_srv.erl

     end.
 
 send_stream_body(Socket, X) -> send_stream_body(Socket, X, 0).
+send_stream_body(Socket, {<<>>, done}, SoFar) ->
+    send_chunk(Socket, <<>>),
+    SoFar;
 send_stream_body(Socket, {Data, done}, SoFar) ->
     Size = send_chunk(Socket, Data),
     send_chunk(Socket, <<>>),