1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

minor fix: timegate check: allow timegate content check from #564 to be ignored if 'no_timegate_check' option is set (for use with derived classes)

bump version to 2.4.1
This commit is contained in:
Ilya Kreymer 2020-06-08 17:12:18 -07:00
parent c7373ba785
commit 94b7fdcf97
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
pywb 2.4.1 changelist
~~~~~~~~~~~~~~~~~~~~~
* Minor fix: allow timegate content check in `#564 <https://github.com/webrecorder/pywb/pull/564>`_ to be ignored (for use with derived classes)
pywb 2.4.0 changelist
~~~~~~~~~~~~~~~~~~~~~

View File

@ -370,11 +370,12 @@ class RewriterApp(object):
else:
# don't return top-frame response for timegate with exact redirects
if not (is_timegate and redirect_to_exact):
keep_frame_response = is_timegate and not redirect_to_exact and not is_proxy
response = self.handle_custom_response(environ, wb_url,
full_prefix, host_prefix,
kwargs)
keep_frame_response = not kwargs.get('no_timegate_check') and is_timegate and not redirect_to_exact and not is_proxy
if response and not keep_frame_response:
return self.format_response(response, wb_url, full_prefix, is_timegate, is_proxy)

View File

@ -1,4 +1,4 @@
__version__ = '2.4.0'
__version__ = '2.4.1'
if __name__ == '__main__':
print(__version__)