mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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:
parent
162bd855a6
commit
9e94afd18d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue