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";)[2] correctly returns //foo, but 
urlparse.urlparse("//foo")[2] (as used in this library) returns an empty
string.

----------
components: Library (Lib)
messages: 56205
nosy: philfr
severity: normal
status: open
title: SimpleHTTPServer doesn't understand // at beginning of path anymore
type: behavior
versions: Python 2.4, Python 2.5

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1224>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to