wayback machine API change: HEAD not supported anymore

This unfortunately makes the API slower, but there's nothing else I
can do. I tried to report this upstream, went unanswered.
parent d9d10c9b
......@@ -27,7 +27,7 @@ def output(*args, feed=None, item=None, **kwargs):
item.get('link'), wayback_url)
if feed.get('catchup'):
return True
res = feed.session.head(wayback_url, allow_redirects=True)
res = feed.session.get(wayback_url, allow_redirects=True)
res.headers['status_code'] = res.status_code
if res.history:
res.headers['Content-Location'] = res.history[0].headers.get('Content-Location') # noqa
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment