summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-01 07:03:30 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-01 07:03:30 (GMT)
commit9e94afd18daec70460ff52b4a75bde31e60347b4 (patch)
treeb19eec4b2b149350401407616565a30b13778e6b /Lib
parent162bd855a631ed66f83ff3ed76ae1533de033298 (diff)
downloadcpython-9e94afd18daec70460ff52b4a75bde31e60347b4.zip
cpython-9e94afd18daec70460ff52b4a75bde31e60347b4.tar.gz
cpython-9e94afd18daec70460ff52b4a75bde31e60347b4.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 9400757..7a98164 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -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