diff options
author | Georg Brandl <georg@python.org> | 2006-03-26 20:59:38 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-03-26 20:59:38 (GMT) |
commit | 1c168d8eebd927d95f069848568262ebc0b90cd6 (patch) | |
tree | e453dd4243ddcd58d20fa82af3da78b52eb4d807 /Lib | |
parent | 04855cc100f2edcb58bac46f7be45e3c770b5d7d (diff) | |
download | cpython-1c168d8eebd927d95f069848568262ebc0b90cd6.zip cpython-1c168d8eebd927d95f069848568262ebc0b90cd6.tar.gz cpython-1c168d8eebd927d95f069848568262ebc0b90cd6.tar.bz2 |
Bug #1457264: parse http://host?query correctly in urllib
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index aeca3f1..d1c50f6 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -1031,7 +1031,7 @@ def splithost(url): global _hostprog if _hostprog is None: import re - _hostprog = re.compile('^//([^/]*)(.*)$') + _hostprog = re.compile('^//([^/?]*)(.*)$') match = _hostprog.match(url) if match: return match.group(1, 2) |