diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-16 17:43:33 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-16 17:43:33 +0100 |
commit | fd11206fe002e46119dd58f31e526a8e85a9a1a1 (patch) | |
tree | 4b9be4f9d69ee0ea174db6c00a0a5e2922a3bb36 /module | |
parent | core now uses xmlrpc (diff) | |
download | pyload-fd11206fe002e46119dd58f31e526a8e85a9a1a1.tar.xz |
added lastEffectiveURL
Diffstat (limited to 'module')
-rwxr-xr-x | module/network/Request.py | 3 |
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 |