]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
change encode('ascii') to utf8() 442/head 443/head
authordave mankoff <mankyd@gmail.com>
Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)
committerdave mankoff <mankyd@gmail.com>
Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)
tornado/curl_httpclient.py

index 7d8faf36e201ec46b12498ea9bdc2ffe525d25d2..a338cb8d6603b060945feeb5c08b56c1f5b161f7 100644 (file)
@@ -386,7 +386,7 @@ def _curl_setup_request(curl, request, buffer, headers):
     if request.auth_username is not None:
         userpwd = "%s:%s" % (request.auth_username, request.auth_password or '')
         curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_BASIC)
-        curl.setopt(pycurl.USERPWD, userpwd.encode('ascii'))
+        curl.setopt(pycurl.USERPWD, utf8(userpwd))
         logging.debug("%s %s (username: %r)", request.method, request.url,
                       request.auth_username)
     else: