]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
pass kwargs through HTTPClient 457/head
authorJehiah Czebotar <jehiah@gmail.com>
Sat, 4 Feb 2012 04:46:31 +0000 (23:46 -0500)
committerJehiah Czebotar <jehiah@gmail.com>
Sat, 4 Feb 2012 04:46:31 +0000 (23:46 -0500)
tornado/httpclient.py

index 354d907c374082388e93153ed236799c3a2c507c..d82990a643126d11d12d52c661392553e9439663 100644 (file)
@@ -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