summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-16 17:43:33 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-16 17:43:33 +0100
commitfd11206fe002e46119dd58f31e526a8e85a9a1a1 (patch)
tree4b9be4f9d69ee0ea174db6c00a0a5e2922a3bb36 /module/network
parentcore now uses xmlrpc (diff)
downloadpyload-fd11206fe002e46119dd58f31e526a8e85a9a1a1.tar.xz
added lastEffectiveURL
Diffstat (limited to 'module/network')
-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