From ca85b4ec6ce2428891d2e1ae72dad2b873c87bbe Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 22 Jan 2013 17:21:34 -0500 Subject: [PATCH] Tests pass this time. --- requests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index 8c7d40d..104b6db 100644 --- a/requests/models.py +++ b/requests/models.py @@ -283,7 +283,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): # Support for unicode domain names and paths. scheme, netloc, path, _params, query, fragment = urlparse(url) - if not scheme: + if not (scheme and netloc): raise MissingSchema("Invalid URL %r: No schema supplied" % url) try: -- 2.7.4