projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47aa968
)
Tests pass this time.
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Tue, 22 Jan 2013 22:21:34 +0000
(17:21 -0500)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Tue, 22 Jan 2013 22:22:12 +0000
(17:22 -0500)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 8c7d40dd8784989fe4f6da0f16284ce6890e22e4..104b6db79449f6e6926b1b757867701d1d1c2e59 100644
(file)
--- 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: