Skip to content

Commit

Permalink
Respond without chunked encoding for single range
Browse files Browse the repository at this point in the history
  • Loading branch information
shino committed Feb 19, 2013
1 parent c93a682 commit f112af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webmachine_request.erl
Expand Up @@ -627,7 +627,7 @@ parts_to_body([{Start, End, Body0}], Size, Req) ->
mochiweb_util:make_io(End),
"/", mochiweb_util:make_io(Size)]}],
Body = if is_function(Body0) ->
{stream, Body0(Start, End)};
{known_length_stream, End - Start + 1, Body0(Start, End)};
true ->
Body0
end,
Expand Down

0 comments on commit f112af3

Please sign in to comment.