diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-04 20:40:09 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-04 20:40:09 +0100 |
commit | 138c28777f8a09fd88c4002a00c87e8bd0c7be74 (patch) | |
tree | 5d8aea3a8dbc65276dc04722e62375ce6dc61b6a /module/network/RequestFactory.py | |
parent | BasePlugin: attempt to fix #266 (diff) | |
download | pyload-138c28777f8a09fd88c4002a00c87e8bd0c7be74.tar.xz |
closed #418
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r-- | module/network/RequestFactory.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index 774249a70..5b1528281 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -54,9 +54,11 @@ class RequestFactory(): self.lock.release() return req - def getHTTPRequest(self): + def getHTTPRequest(self, **kwargs): """ returns a http request, dont forget to close it ! """ - return HTTPRequest(CookieJar(None), self.getOptions()) + options = self.getOptions() + options.update(kwargs) # submit kwargs as additional options + return HTTPRequest(CookieJar(None), options) def getURL(self, *args, **kwargs): """ see HTTPRequest for argument list """ |