Roundup Robot added the comment:
New changeset a58b620e4dc9 by Senthil Kumaran in branch '2.7':
Fix SimpleHTTPServer's request handling case on trailing '/'.
http://hg.python.org/cpython/rev/a58b620e4dc9
New changeset 1fcccbbe15e2 by Senthil Kumaran in branch '3.3':
Fix http.server's request
Senthil Kumaran added the comment:
Thanks for the patches, Vajrasky and Karl. Fixed in currently active (3.4,3.3
and 2.7) versions of python.
--
assignee: - orsenthil
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
versions: -Python 3.2
Vajrasky Kok added the comment:
Attached the fix and the unit test for this problem.
--
nosy: +vajrasky
Added file:
http://bugs.python.org/file30863/patch_for_fixing_the_server_serving_the_url_with_trailing_slash.txt
___
Python tracker
Senko Rasic added the comment:
The attached test (issue-17324-test-1) reproduces the issue for me on
3.4.0alpha.
--
nosy: +senko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17324
___
karl added the comment:
orsenthil,
would that test work?
See issue-17324-test-1.patch
Here the result of the test which is FAIL as planned (given the current issue).
→ ./python.exe Lib/test/test_httpservers.py
test_header_buffering_of_send_error (__main__.BaseHTTPRequestHandlerTestCase)
New submission from Larry Hastings:
To reproduce:
1) Create a file called foo.txt in the local directory, put whatever you like
in it.
2) Run python -m SimpleHTTPServer or python3 -m http.server.
3) Point your web browser at http://127.0.0.1:8000/foo.txt/;.
4) Note that the server has served
Changes by Larry Hastings la...@hastings.org:
--
stage: - test needed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17324
___
Senthil Kumaran added the comment:
I thought this was fixed (recently). Shall look again. Having the tests is the
only hard part here.
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17324