From 9256e34c153a1536c3e72def7e5e79ec2b95ea5f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 29 Nov 2017 16:32:15 +0100 Subject: Add missing timestamp to response data for redirects Fixes 6f628ca24ac2b243dd4a611ff1ecff2d35aaa019 --- crocoite/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crocoite/browser.py b/crocoite/browser.py index 67c75c3..e58fce8 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -158,7 +158,7 @@ class SiteLoader: # redirects never “finish” loading, but yield another requestWillBeSent with this key set redirectResp = kwargs.get ('redirectResponse') if redirectResp: - resp = {'requestId': reqId, 'response': redirectResp} + resp = {'requestId': reqId, 'response': redirectResp, 'timestamp': kwargs['timestamp']} item.setResponse (resp) self.loadingFinished (item, redirect=True) self.logger.debug ('redirected request {} has url {}'.format (reqId, req['url'])) -- cgit v1.2.3