[issue1224] SimpleHTTPServer doesn't understand // at beginning of path anymore

2007-10-01 Thread philfr
philfr added the comment: May I suggest replacing the path = urlparse.urlparse(path)[2] line with the following two: path = path.split('?',1)[0] path = path.split('#',1)[0] thereby handling parameters as well as fragments. __

[issue1394565] SimpleHTTPServer doesn't understand query arguments

2007-10-01 Thread philfr
philfr added the comment: I created the new issue 1224 for this. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1394565> _ ___ Python-bugs-list

[issue1224] SimpleHTTPServer doesn't understand // at beginning of path anymore

2007-10-01 Thread philfr
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 a

[issue1394565] SimpleHTTPServer doesn't understand query arguments

2007-10-01 Thread philfr
philfr added the comment: This fix 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.urlp