[issue4493] urllib2 doesn't always supply / where URI path component is empty

Wes Chow report at bugs.python.org
Sat Nov 20 23:21:39 CET 2010


Wes Chow <wes.chow at gmail.com> 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 indicate there might be some obscure cases where this is problematic.

And yes, I do realize that this patch fixes the problem in yet another place. Hopefully HTTPConnection is the lowest common denominator.

----------
keywords: +patch
nosy: +weschow
Added file: http://bugs.python.org/file19716/empty-path-4493.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4493>
_______________________________________


More information about the Python-bugs-list mailing list