]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Document curl_httpclient empty password fix.
authorBen Darnell <ben@bendarnell.com>
Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)
committerBen Darnell <ben@bendarnell.com>
Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)
Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.

tornado/simple_httpclient.py
website/sphinx/releases/next.rst

index ad5b7e0987cd1287aa4d41de0bfe350ab92d988c..376d410c56fc3f3e2bed6fc36b61f6c229d071e4 100644 (file)
@@ -257,7 +257,7 @@ class _HTTPConnection(object):
             username, password = parsed.username, parsed.password
         elif self.request.auth_username is not None:
             username = self.request.auth_username
-            password = self.request.auth_password
+            password = self.request.auth_password or ''
         if username is not None:
             auth = utf8(username) + b(":") + utf8(password)
             self.request.headers["Authorization"] = (b("Basic ") +
index fa940c895ab7e63bf8bb6398d083bdfa11ac7a6c..aec080bf98c66a7f17b2b4298dba104bb028e969 100644 (file)
@@ -32,6 +32,8 @@ Backwards-incompatible changes
   responses with no content, or empty ``POST``/``PUT`` response bodies.
 * `SimpleAsyncHTTPClient` now supports 303 and 307 redirect codes.
 * `tornado.curl_httpclient` now accepts non-integer timeouts.
+* `tornado.curl_httpclient` now supports basic authentication with an
+  empty password.
 
 ``tornado.httpserver``
 ~~~~~~~~~~~~~~~~~~~~~~