New submission from Josep Portella Florit:

To reproduce:

1) Create directory "foo" in the current directory.
2) Run "python -m SimpleHTTPServer" or "python3 -m http.server".
3A) Point web browser to "http://127.0.0.1:8000/foo/?";.
    The request is redirected to "http://127.0.0.1:8000/foo/?/";.
    The expected behaviour was no redirection.
3B) Point web browser to "http://127.0.0.1:8000/foo?";.
    The request is redirected to "http://127.0.0.1:8000/foo?/";.
    The expected behaviour was a redirection to
    "http://127.0.0.1:8000/foo/?";.

Reproduced with 2.7.6 and 3.4.0.

----------
components: Library (Lib)
messages: 233095
nosy: jpf
priority: normal
severity: normal
status: open
title: SimpleHTTPServer/http.server adds trailing slash after query string
type: behavior
versions: Python 2.7, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23112>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to