summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-11-29 16:32:15 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-11-29 16:32:15 +0100
commit9256e34c153a1536c3e72def7e5e79ec2b95ea5f (patch)
tree0041d0bdb648534e61ef0974c11e19c985aab0b6 /crocoite
parent6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e (diff)
downloadcrocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.tar.gz
crocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.tar.bz2
crocoite-9256e34c153a1536c3e72def7e5e79ec2b95ea5f.zip
Add missing timestamp to response data for redirects
Fixes 6f628ca24ac2b243dd4a611ff1ecff2d35aaa019
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/browser.py2
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']))