summaryrefslogtreecommitdiffstats
path: root/module/network/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-02 13:00:20 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-02 13:00:20 +0200
commit9415f17b63a1167c5f933e2ef7784d1aa4cf3e30 (patch)
tree4ccfefac0cea6622381f0abddf62bc94557552ea /module/network/RequestFactory.py
parentwupload plugin (free) (diff)
downloadpyload-9415f17b63a1167c5f933e2ef7784d1aa4cf3e30.tar.xz
wupload premium (untested), new log functions for plugins, decode kwarg for requests
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r--module/network/RequestFactory.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py
index 9b32ed570..44f66efab 100644
--- a/module/network/RequestFactory.py
+++ b/module/network/RequestFactory.py
@@ -58,9 +58,10 @@ class RequestFactory():
""" returns a http request, dont forget to close it ! """
return HTTPRequest(CookieJar(None), self.getOptions())
- def getURL(self, url, get={}, post={}, multipart=False):
+ def getURL(self, *args, **kwargs):
+ """ see HTTPRequest for argument list """
h = HTTPRequest(None, self.getOptions())
- rep = h.load(url, get, post, multipart=multipart)
+ rep = h.load(*args, **kwargs)
h.close()
return rep