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

This commit is contained in:
Georg Brandl 2006-03-26 20:59:38 +00:00
parent 04855cc100
commit 1c168d8eeb
1 changed files with 1 additions and 1 deletions

View File

@ -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)