mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
responseloader: self-redirect: if no status code (eg. for revisits), always parse and look at the actual status code
This commit is contained in:
parent
ccc13b427f
commit
003d84c371
@ -208,7 +208,8 @@ class WARCPathLoader(BaseLoader):
|
||||
failed_files,
|
||||
local_index_query))
|
||||
|
||||
if cdx.get('status', '').startswith('3'):
|
||||
status = cdx.get('status')
|
||||
if not status or status.startswith('3'):
|
||||
status_headers = self.headers_parser.parse(payload.stream)
|
||||
self.raise_on_self_redirect(params, cdx,
|
||||
status_headers.get_statuscode(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user