Browse Source

ignore hsts as well

Nick Sweeting 6 years ago
parent
commit
78ffa57c06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/archive_methods.py

+ 1 - 1
archivebox/archive_methods.py

@@ -223,7 +223,7 @@ def fetch_wget(link_dir, link, requisites=FETCH_WGET_REQUISITES, warc=FETCH_WARC
         *(('--warc-file={}'.format(warc_path),) if warc else ()),
         *(('--page-requisites',) if FETCH_WGET_REQUISITES else ()),
         *(('--user-agent={}'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()),
-        *((() if CHECK_SSL_VALIDITY else ('--no-check-certificate',))),
+        *((() if CHECK_SSL_VALIDITY else ('--no-check-certificate', '--no-hsts'))),
         link['url'],
     ]
     end = progress(timeout, prefix='      ')