Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Circumvent chunked encoding in case of single range

  • Loading branch information...
commit 03ec5d42ad3859752bd60d77920056a8bb04bd33 1 parent d94a07e
@shino shino authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/webmachine_request.erl
View
3  src/webmachine_request.erl
@@ -588,7 +588,8 @@ parts_to_body([{Start, End, Body0}], Size) ->
mochiweb_util:make_io(End),
"/", mochiweb_util:make_io(Size)]}],
Body = if is_function(Body0) ->
- {stream, Body0(Start, End)};
+ {BodyBin, done} = Body0(Start, End),
+ BodyBin;
true ->
Body0
end,
Please sign in to comment.
Something went wrong with that request. Please try again.