diff --git a/requests/adapters.py b/requests/adapters.py index 98b7317e..b4502796 100644 --- a/requests/adapters.py +++ b/requests/adapters.py @@ -118,7 +118,7 @@ class HTTPAdapter(BaseAdapter): :param verify: Whether we should actually verify the certificate. :param cert: The SSL certificate to verify. """ - if url.startswith('https') and verify: + if url.lower.startswith('https') and verify: cert_loc = None diff --git a/requests/sessions.py b/requests/sessions.py index f4aeeee6..ccd76340 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -467,7 +467,7 @@ class Session(SessionRedirectMixin): """Returns the appropriate connnection adapter for the given URL.""" for (prefix, adapter) in self.adapters.items(): - if url.startswith(prefix): + if url.lower.startswith(prefix): return adapter # Nothing matches :-/