]> granicus.if.org Git - python/commitdiff
Fix bug #314, reported by Craig Allen <cba@mediaone.net>:
authorFred Drake <fdrake@acm.org>
Sat, 1 Jul 2000 07:03:30 +0000 (07:03 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 1 Jul 2000 07:03:30 +0000 (07:03 +0000)
splittype():  Always lower-case the URL scheme; these are supposed to be
               normalized according to RFC 1738 anyway.

Lib/urllib.py

index 9400757db6a796e7e3753b502d93a3df22f6db90..7a98164cf3dcebb9321f6e2f49187d0b9a9f3482 100644 (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