mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-18 18:26:31 +00:00
Add --compress to curl call and hope Apple doesn't decide to violate more HTTP standards.
This commit is contained in:
parent
409ea6c9a9
commit
13fb28cdc8
@ -261,7 +261,9 @@ def replicate_url(full_url,
|
|||||||
options = '-fL'
|
options = '-fL'
|
||||||
else:
|
else:
|
||||||
options = '-sfL'
|
options = '-sfL'
|
||||||
curl_cmd = ['/usr/bin/curl', options, '--create-dirs',
|
curl_cmd = ['/usr/bin/curl', options,
|
||||||
|
'--create-dirs',
|
||||||
|
'--compressed',
|
||||||
'-o', local_file_path]
|
'-o', local_file_path]
|
||||||
if not ignore_cache and os.path.exists(local_file_path):
|
if not ignore_cache and os.path.exists(local_file_path):
|
||||||
curl_cmd.extend(['-z', local_file_path])
|
curl_cmd.extend(['-z', local_file_path])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user