diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:04:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:04:29 +0100 |
commit | 0de6e675bb0c5a4adb79d16df55ada3071825ad5 (patch) | |
tree | 9ff782ba4c41873c8c7d06b239166d8a0806b335 /module/network/RequestFactory.py | |
parent | Revert plugins to stable (diff) | |
download | pyload-0de6e675bb0c5a4adb79d16df55ada3071825ad5.tar.xz |
Revert remaining modules
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r-- | module/network/RequestFactory.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index 750f37dc9..5b1528281 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -62,23 +62,12 @@ class RequestFactory(): def getURL(self, *args, **kwargs): """ see HTTPRequest for argument list """ - cj = None - - if 'cookies' in kwargs: - if isinstance(kwargs['cookies'], CookieJar): - cj = kwargs['cookies'] - elif isinstance(kwargs['cookies'], list): - cj = CookieJar(None) - for cookie in kwargs['cookies']: - if isinstance(cookie, tuple) and len(cookie) == 3: - cj.setCookie(*cookie) - - h = HTTPRequest(cj, self.getOptions()) + h = HTTPRequest(None, self.getOptions()) try: rep = h.load(*args, **kwargs) finally: h.close() - + return rep def getCookieJar(self, pluginName, account=None): |