From: Ian Cordasco Date: Tue, 22 Jan 2013 22:21:34 +0000 (-0500) Subject: Tests pass this time. X-Git-Tag: v1.2.0~76^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca85b4ec6ce2428891d2e1ae72dad2b873c87bbe;p=services%2Fpython-requests.git Tests pass this time. --- 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: