Update chunk size per bentaylornz

This commit is contained in:
CorpNewt 2020-05-13 06:15:26 -05:00 committed by GitHub
parent 1ccde43556
commit 58ab64c42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ class Downloader:
response = self.open_url(url, headers)
if not response:
return None
CHUNK = 16 * 1024
CHUNK = 1024 * 1024
bytes_so_far = 0
try:
total_size = int(response.headers['Content-Length'])
@ -111,7 +111,7 @@ class Downloader:
response = self.open_url(url, headers)
if not response:
return None
CHUNK = 16 * 1024
CHUNK = 1024 * 1024
bytes_so_far = 0
try:
total_size = int(response.headers['Content-Length'])
@ -132,7 +132,7 @@ class Downloader:
response = self.open_url(url, headers)
if not response:
return None
CHUNK = 16 * 1024
CHUNK = 1024 * 1024
bytes_so_far = 0
try:
total_size = int(response.headers['Content-Length'])