Wes Chow added the comment:
This same bug also exists in HTTPClient, and my patch addresses that.
Addressing it in HTTPClient has a side effect of taking care of it for urllib2
as well (and all future libraries that use HTTPClient).
Even if the urllib2 patch is preferable, shouldn't w
Wes Chow added the comment:
Attached is a patch against 3.2 that replaces empty paths with '/' in
HTTPConnection. I do not totally understand the ; syntax in URIs, and so this
implementation may break that, as it splits urls and unsplits them if needed.
The Python docs seem to indi
Wes Chow added the comment:
Patch against 2.7 (urlparse-9721-2.7.patch).
--
Added file: http://bugs.python.org/file19707/urlparse-9721-2.7.patch
___
Python tracker
<http://bugs.python.org/issue9
Wes Chow added the comment:
New patch (urlparse-9721-3.2.patch) against 3.2 which fixes the erroneous test.
--
Added file: http://bugs.python.org/file19706/urlparse-9721-3.2.patch
___
Python tracker
<http://bugs.python.org/issue9
Wes Chow added the comment:
Here's a patch for 3.2 which fixes this problem I believe. There does exist a
test case that should have produced an error, except that the last path segment
in RFC3986_BASE is only one character long. Had it been more than one character
long, RFC3986 checks