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.
__
philfr added the comment:
I created the new issue 1224 for this.
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1394565>
_
___
Python-bugs-list
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
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