diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-02 13:00:20 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-02 13:00:20 +0200 |
commit | 9415f17b63a1167c5f933e2ef7784d1aa4cf3e30 (patch) | |
tree | 4ccfefac0cea6622381f0abddf62bc94557552ea /module/network/HTTPRequest.py | |
parent | wupload plugin (free) (diff) | |
download | pyload-9415f17b63a1167c5f933e2ef7784d1aa4cf3e30.tar.xz |
wupload premium (untested), new log functions for plugins, decode kwarg for requests
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r-- | module/network/HTTPRequest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index cc1a05852..bf23bb202 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -154,7 +154,7 @@ class HTTPRequest(): self.getCookies() - def load(self, url, get={}, post={}, referer=True, cookies=True, just_header=False, multipart=False): + def load(self, url, get={}, post={}, referer=True, cookies=True, just_header=False, multipart=False, decode=False): """ load and returns a given page """ self.setRequestContext(url, get, post, referer, cookies, multipart) @@ -180,7 +180,9 @@ class HTTPRequest(): self.lastEffectiveURL = self.c.getinfo(pycurl.EFFECTIVE_URL) self.addCookies() - #rep = self.decodeResponse(rep) + if decode: + rep = self.decodeResponse(rep) + return rep def verifyHeader(self): |