accept gzipped responses when using curl

This commit is contained in:
Nick Sweeting 2020-07-28 05:55:54 -04:00
parent af9084ee95
commit 273059f054
3 changed files with 6 additions and 3 deletions

View file

@ -48,6 +48,7 @@ def save_archive_dot_org(link: Link, out_dir: Optional[str]=None, timeout: int=T
'--silent',
'--location',
'--head',
'--compressed',
'--max-time', str(timeout),
*(['--user-agent', '{}'.format(CURL_USER_AGENT)] if CURL_USER_AGENT else []),
*([] if CHECK_SSL_VALIDITY else ['--insecure']),