mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
Flip dedupe precedence order
This commit is contained in:
parent
4d9c5a7b4b
commit
d74ddd42ae
8 changed files with 33 additions and 40 deletions
|
@ -42,14 +42,14 @@ def save_headers(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEOUT)
|
|||
|
||||
status = 'succeeded'
|
||||
timer = TimedProgress(timeout, prefix=' ')
|
||||
# earlier options take precedence
|
||||
# later options take precedence
|
||||
options = [
|
||||
*CURL_ARGS,
|
||||
*CURL_EXTRA_ARGS,
|
||||
'--head',
|
||||
'--max-time', str(timeout),
|
||||
*(['--user-agent', '{}'.format(CURL_USER_AGENT)] if CURL_USER_AGENT else []),
|
||||
*([] if CHECK_SSL_VALIDITY else ['--insecure']),
|
||||
*CURL_EXTRA_ARGS,
|
||||
*CURL_ARGS,
|
||||
]
|
||||
cmd = [
|
||||
CURL_BINARY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue