[New-bugs-announce] [issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

Larry Hastings report at bugs.python.org
Fri Mar 1 09:54:06 CET 2013


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 the contents of "foo.txt" as "foo.txt/".  It shouldn't do that!

Reproduced with 2.7.3, 3.2.3, and 3.3.0.  I assume it's still there in trunk.

----------
components: Library (Lib)
keywords: easy
messages: 183247
nosy: larry
priority: low
severity: normal
status: open
title: SimpleHTTPServer serves files even if the URL has a trailing slash
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17324>
_______________________________________


More information about the New-bugs-announce mailing list