Navigation Menu

Skip to content

Commit

Permalink
Name chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 4, 2014
1 parent 99f68a8 commit d67fca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -39,7 +39,8 @@ def download(url, output_path)
open(url, options) do |input|
output_path.open("wb") do |output|
chunk = ""
while input.read(8012, chunk)
chunk_size = 8012
while input.read(chunk_size, chunk)
output.print(chunk)
end
end
Expand Down

0 comments on commit d67fca7

Please sign in to comment.