Add --compress to curl call and hope Apple doesn't decide to violate more HTTP standards.

This commit is contained in:
Greg Neagle 2020-09-23 16:52:24 -07:00
parent 409ea6c9a9
commit 13fb28cdc8

View File

@ -261,7 +261,9 @@ def replicate_url(full_url,
options = '-fL'
else:
options = '-sfL'
curl_cmd = ['/usr/bin/curl', options, '--create-dirs',
curl_cmd = ['/usr/bin/curl', options,
'--create-dirs',
'--compressed',
'-o', local_file_path]
if not ignore_cache and os.path.exists(local_file_path):
curl_cmd.extend(['-z', local_file_path])