Skip to content

Commit

Permalink
Merge branch 'chunked-encoding'
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Mar 7, 2011
2 parents 6f3e9f2 + 778e8cc commit 30c943b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/misultin_req.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ stream(head) ->
stream(head, 200, []);
stream({error, Reason}) ->
SocketPid ! {stream_error, Reason};
stream({chunk, Data}) ->
stream(integer_to_list(length(Data), 16) ++ "\r\n" ++ Data ++ "\r\n");
stream(Data) ->
catch SocketPid ! {stream_data, Data}.
stream(head, Headers) ->
Expand Down

0 comments on commit 30c943b

Please sign in to comment.