Skip to content

Commit

Permalink
Fix bug that affected big file uploads.
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyio committed Nov 7, 2009
1 parent 0904aab commit 1a48d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple_bridge_multipart.erl
Expand Up @@ -197,7 +197,7 @@ get_next_line(Data, Acc, Part, State) when Data == undefined orelse Data == <<>>
% We don't want Acc to grow too big, so if we have more than ?CHUNKSIZE
% data already read, then flush it to the current part.
{Acc1, Part1} = case Part /= undefined andalso size(Acc) > ?CHUNKSIZE of
true -> {Acc, update_part_with_value(Acc, false, Part)};
true -> {<<>>, update_part_with_value(Acc, false, Part)};
false -> {Acc, Part}
end,
% it into a part.
Expand Down

0 comments on commit 1a48d99

Please sign in to comment.