Commit 8f4b4961 authored by Georg Brandl's avatar Georg Brandl

Bug #1457264: parse http://host?query correctly in urllib

parent d84410a5
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment