1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-09-09 05:40:50 +02:00

send ArchiveBox user agent to archive.org

This commit is contained in:
Nick Sweeting
2019-02-04 20:02:33 -08:00
parent 8a9b4d6975
commit 705abda1a5

View File

@@ -32,6 +32,7 @@ from config import (
ANSI,
ARCHIVE_DIR,
GIT_DOMAINS,
GIT_SHA,
)
from util import (
check_dependencies,
@@ -404,6 +405,7 @@ def archive_dot_org(link_dir, link, timeout=TIMEOUT):
'curl',
'--location',
'--head',
'--user-agent', 'ArchiveBox/{} (+https://github.com/pirate/ArchiveBox/)'.format(GIT_SHA),
'--max-time', str(timeout),
'--get',
*(() if CHECK_SSL_VALIDITY else ('--insecure',)),