Bug #1457264: parse http://host?query correctly in urllib
This commit is contained in:
parent
04855cc100
commit
1c168d8eeb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue