summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rwxr-xr-xmodule/network/Request.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index eb67da95d..9f27af4ec 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -47,6 +47,7 @@ class Request:
self.abort = False
+ self.lastEffectiveURL = None
self.lastURL = None
self.auth = False
@@ -138,6 +139,7 @@ class Request:
self.pycurl.perform()
+ self.lastEffectiveURL = self.pycurl.getinfo(pycurl.EFFECTIVE_URL)
self.lastURL = url
header = self.get_header()
@@ -165,6 +167,7 @@ class Request:
if rep.headers["content-encoding"] == "gzip":
output = GzipFile('', 'r', 0, StringIO(output)).read()
+ self.lastEffectiveURL = rep.geturl()
self.lastURL = url
return output