Use https URLS for web archive

This commit is contained in:
Kovid Goyal 2017-03-02 13:06:55 +05:30
parent 0350e13e87
commit 9c78d6d18b

View File

@ -88,7 +88,7 @@ def wayback_machine_cached_url(url, br=None, log=prints, timeout=60):
try:
closest = data['archived_snapshots']['closest']
if closest['available']:
return closest['url']
return closest['url'].replace('http:', 'https:')
except Exception:
pass
from pprint import pformat