From acd4dceb711e9148ede208bb67dc37bfaafd612b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 4 Feb 2011 17:19:41 +0100 Subject: improved captcha manager --- module/network/RequestFactory.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/network/RequestFactory.py') diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py index ec9ce4350..8340d06f7 100644 --- a/module/network/RequestFactory.py +++ b/module/network/RequestFactory.py @@ -49,9 +49,9 @@ class RequestFactory(): self.lock.release() return req - def getURL(self, url, get={}, post={}): + def getURL(self, url, get={}, post={}, multipart=False): h = HTTPRequest(None, self.iface(), self.getProxies()) - rep = h.load(url, get, post) + rep = h.load(url, get, post, multipart=multipart) h.close() return rep @@ -97,5 +97,5 @@ class RequestFactory(): self.bucket.setRate(self.core.config["download"]["max_speed"] * 1024) # needs pyreq in global namespace -def getURL(url, get={}, post={}): - return pyreq.getURL(url, get, post) \ No newline at end of file +def getURL(*args, **kwargs): + return pyreq.getURL(*args, **kwargs) \ No newline at end of file -- cgit v1.2.3