From: Fred Drake Date: Sat, 1 Jul 2000 07:03:30 +0000 (+0000) Subject: Fix bug #314, reported by Craig Allen : X-Git-Tag: v2.0b1~1144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e94afd18daec70460ff52b4a75bde31e60347b4;p=thirdparty%2FPython%2Fcpython.git Fix bug #314, reported by Craig Allen : splittype(): Always lower-case the URL scheme; these are supposed to be normalized according to RFC 1738 anyway. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 9400757db6a7..7a98164cf3dc 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