mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 06:46:15 +00:00
+1
-1
@@ -443,7 +443,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
|
||||
if not uri.scheme:
|
||||
error = (
|
||||
"Invalid URL {!r}: No scheme supplied. Perhaps you meant http://{}?"
|
||||
"Invalid URL {0!r}: No scheme supplied. Perhaps you meant http://{0}?"
|
||||
)
|
||||
error = error.format(to_native_string(url, 'utf8'))
|
||||
raise MissingScheme(error)
|
||||
|
||||
Reference in New Issue
Block a user