Navigation Menu

Skip to content

Commit

Permalink
Tests pass this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Cordasco committed Jan 22, 2013
1 parent 47aa968 commit ca85b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/models.py
Expand Up @@ -283,7 +283,7 @@ def prepare_url(self, url, params):
# 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:
Expand Down

0 comments on commit ca85b4e

Please sign in to comment.