]> git.ipfire.org Git - thirdparty/tornado.git/commit
Pass parsed hostname around explictly instead of storing it on the urlsplit result.
authorBen Darnell <ben@bendarnell.com>
Mon, 20 Feb 2012 03:33:08 +0000 (19:33 -0800)
committerBen Darnell <ben@bendarnell.com>
Mon, 20 Feb 2012 03:33:08 +0000 (19:33 -0800)
commit56ec1ee597f91fb59ec660dfe7a4fdd68f2209eb
treef38faf7adb114b512a0420b34b900e55beb303b3
parent83a0eedff925393d15956d0f8f3b5e51b35225a7
Pass parsed hostname around explictly instead of storing it on the urlsplit result.

In some versions of python (including 2.5 and 3.2 but not 2.6 or 2.7),
urlsplit results use __slots__ and therefore don't allow artibrary attributes
to be set.

Also move the storing of the parsed hostname above hostname_mapping,
since the cert should be checked against the requested url, not the remapped
one.

Closes #448.
tornado/simple_httpclient.py
tornado/test/httpserver_test.py
website/sphinx/releases/next.rst