[issue1314572] Trailing slash redirection for SimpleHTTPServer

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jul 1 12:17:46 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The same problem was fixed with issue827559.
But the patch here is different:

- it returns a code 302 instead of 301

- it uses the header "Content-Location" instead of "Location" to set the
new path with the slash

- it sets "Content-type: text/html" and returns the following content:
   '<META HTTP-EQUIV="refresh" CONTENT="0;URL=%s/">'%self.path

Some HTTP expert should conclude.

----------
assignee:  -> akuchling
nosy: +akuchling, amaury.forgeotdarc

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


More information about the Python-bugs-list mailing list