From 138c28777f8a09fd88c4002a00c87e8bd0c7be74 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 4 Nov 2011 20:40:09 +0100 Subject: closed #418 --- module/network/RequestFactory.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/network/RequestFactory.py') 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 """ -- cgit v1.2.3