summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crocoite/browser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py
index 9f0c2d0..06f2b22 100644
--- a/crocoite/browser.py
+++ b/crocoite/browser.py
@@ -171,10 +171,13 @@ class SiteLoader:
# redirects never “finish” loading, but yield another requestWillBeSent with this key set
redirectResp = kwargs.get ('redirectResponse')
if redirectResp:
+ # create fake responses
resp = {'requestId': reqId, 'response': redirectResp, 'timestamp': kwargs['timestamp']}
item.setResponse (resp)
+ resp = {'requestId': reqId, 'encodedDataLength': 0, 'timestamp': kwargs['timestamp']}
+ item.setFinished (resp)
self.loadingFinished (item, redirect=True)
- self.logger.debug ('redirected request {} has url {}'.format (reqId, req['url']))
+ self.logger.info ('redirected request {} has url {}'.format (reqId, req['url']))
else:
self.logger.warn ('request {} already exists, overwriting.'.format (reqId))