]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix path parsing in HTTPServer.
authorBen Darnell <ben@bendarnell.com>
Thu, 10 May 2012 04:57:44 +0000 (21:57 -0700)
committerBen Darnell <ben@bendarnell.com>
Thu, 10 May 2012 04:57:44 +0000 (21:57 -0700)
commit25f499004301846a9cb5c8e2c30692c64430acd1
tree4df473904da9b517435850be84c91d46cea57853
parent28590fce120a42ee5f3f1a960040bd1cb84422cc
Fix path parsing in HTTPServer.

urlparse.urlsplit expects a full url, but we were using it for a bare path.
This mostly worked but would parse paths beginning with "//" incorrectly.
Fortunately all we really need to do is split the path on "?".

Closes #509.
tornado/httpserver.py
tornado/test/httpserver_test.py