facebook/tornado — pull request #442 by mankyd (2012-01-22 22:19:57+00:00)
Title: Send Basic Auth Through Curl When Password is Empty

Related to #441. This causes the CurlAsyncHTTPClient to send the Basic Auth headers when the username is not None. Password will be set to an empty string if it is otherwise None.

Also fixes an encoding issues I was experiencing. Pycurl wasn't accepting ut8 for the userpwd parameter. I had to encode it as ascii.