[New-bugs-announce] [issue1224] SimpleHTTPServer doesn't understand // at beginning of path anymore
report at bugs.python.org
Mon Oct 1 13:20:26 CEST 2007
New submission from philfr:
The fix to issue 1394565 introduces a nasty side-effect:
"GET http://server//file" (with two /s) does not work anymore. It
returns the directory index instead.
This is because urlparse is not applied to an URL, but to its right-hand
part starting at the path.
urlparse.urlparse("http://server//foo") correctly returns //foo, but
urlparse.urlparse("//foo") (as used in this library) returns an empty
components: Library (Lib)
title: SimpleHTTPServer doesn't understand // at beginning of path anymore
versions: Python 2.4, Python 2.5
Tracker <report at bugs.python.org>
More information about the New-bugs-announce