summaryrefslogtreecommitdiffstats
path: root/module/network/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-04 20:40:09 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-04 20:40:09 +0100
commit138c28777f8a09fd88c4002a00c87e8bd0c7be74 (patch)
tree5d8aea3a8dbc65276dc04722e62375ce6dc61b6a /module/network/RequestFactory.py
parentBasePlugin: attempt to fix #266 (diff)
downloadpyload-138c28777f8a09fd88c4002a00c87e8bd0c7be74.tar.xz
closed #418
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r--module/network/RequestFactory.py6
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 """