diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-11-29 16:32:15 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-11-29 16:32:15 +0100 |
commit | 9256e34c153a1536c3e72def7e5e79ec2b95ea5f (patch) | |
tree | 0041d0bdb648534e61ef0974c11e19c985aab0b6 | |
parent | 6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e (diff) | |
download | crocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.tar.gz crocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.tar.bz2 crocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.zip |
Add missing timestamp to response data for redirects
Fixes 6f628ca24ac2b243dd4a611ff1ecff2d35aaa019
-rw-r--r-- | crocoite/browser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'])) |