diff --git a/CHANGES.rst b/CHANGES.rst index 30b58bc3..8892edca 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +pywb 2.4.1 changelist +~~~~~~~~~~~~~~~~~~~~~ + +* Minor fix: allow timegate content check in `#564 `_ to be ignored (for use with derived classes) + + pywb 2.4.0 changelist ~~~~~~~~~~~~~~~~~~~~~ diff --git a/pywb/apps/rewriterapp.py b/pywb/apps/rewriterapp.py index a6fd5274..ba2d233a 100644 --- a/pywb/apps/rewriterapp.py +++ b/pywb/apps/rewriterapp.py @@ -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) diff --git a/pywb/version.py b/pywb/version.py index 86f56f5b..110613ce 100644 --- a/pywb/version.py +++ b/pywb/version.py @@ -1,4 +1,4 @@ -__version__ = '2.4.0' +__version__ = '2.4.1' if __name__ == '__main__': print(__version__)