Skip to content

Commit

Permalink
Fix problem with returning 0 byte files with known_length_stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymclaughlin committed Mar 6, 2013
1 parent 43bd330 commit ba63f2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webmachine_decision_core.erl
Expand Up @@ -624,6 +624,8 @@ encode_body(Body) ->
case Body of
{stream, StreamBody} ->
{stream, make_encoder_stream(Encoder, Charsetter, StreamBody)};
{known_length_stream, 0, _StreamBody} ->
{known_length_stream, 0, empty_stream()};
{known_length_stream, Size, StreamBody} ->
case method() of
'HEAD' ->
Expand Down

0 comments on commit ba63f2f

Please sign in to comment.