Fix bug #314, reported by Craig Allen <cba@mediaone.net>:

splittype():  Always lower-case the URL scheme; these are supposed to be
               normalized according to RFC 1738 anyway.
This commit is contained in:
Fred Drake 2000-07-01 07:03:30 +00:00
parent 162bd855a6
commit 9e94afd18d

View file

@ -848,7 +848,7 @@ def splittype(url):
match = _typeprog.match(url)
if match:
scheme = match.group(1)
return scheme, url[len(scheme) + 1:]
return scheme.lower(), url[len(scheme) + 1:]
return None, url
_hostprog = None