Skip to content

Commit df23c03

Browse files
committed
change encode('ascii') to utf8()
1 parent bcb30e5 commit df23c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tornado/curl_httpclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def ioctl(cmd):
386386
if request.auth_username is not None:
387387
userpwd = "%s:%s" % (request.auth_username, request.auth_password or '')
388388
curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_BASIC)
389-
curl.setopt(pycurl.USERPWD, userpwd.encode('ascii'))
389+
curl.setopt(pycurl.USERPWD, utf8(userpwd))
390390
logging.debug("%s %s (username: %r)", request.method, request.url,
391391
request.auth_username)
392392
else:

0 commit comments

Comments
 (0)