From: Jehiah Czebotar Date: Sat, 4 Feb 2012 04:46:31 +0000 (-0500) Subject: pass kwargs through HTTPClient X-Git-Tag: v2.3.0~87^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F457%2Fhead;p=thirdparty%2Ftornado.git pass kwargs through HTTPClient --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 354d907c3..d82990a64 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -54,11 +54,11 @@ class HTTPClient(object): except httpclient.HTTPError, e: print "Error:", e """ - def __init__(self, async_client_class=None): + def __init__(self, async_client_class=None, **kwargs): self._io_loop = IOLoop() if async_client_class is None: async_client_class = AsyncHTTPClient - self._async_client = async_client_class(self._io_loop) + self._async_client = async_client_class(self._io_loop, **kwargs) self._response = None self._closed = False