Tests pass this time.
authorIan Cordasco <graffatcolmingov@gmail.com>
Tue, 22 Jan 2013 22:21:34 +0000 (17:21 -0500)
committerIan Cordasco <graffatcolmingov@gmail.com>
Tue, 22 Jan 2013 22:22:12 +0000 (17:22 -0500)
requests/models.py

index 8c7d40dd8784989fe4f6da0f16284ce6890e22e4..104b6db79449f6e6926b1b757867701d1d1c2e59 100644 (file)
@@ -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: