mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
recorder: filters: check for 'Recorder-Skip: 1' on record response also
This commit is contained in:
parent
1e1964f071
commit
8e97a29c0b
@ -86,6 +86,9 @@ class CollectionFilter(SkipNothingFilter):
|
||||
return False
|
||||
|
||||
def skip_response(self, path, req_headers, resp_headers):
|
||||
if resp_headers.get('Recorder-Skip') == '1':
|
||||
return True
|
||||
|
||||
path = path[1:].split('/', 1)[0]
|
||||
|
||||
rx = self.rx_accept_map.get(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user