Commit 2ec3db81 by Mohammad Ashraful Islam Committed by Tom Christie

fixed url checker ':' to 'http' (#4678)

parent f9a0db3e
...@@ -114,7 +114,7 @@ if requests is not None: ...@@ -114,7 +114,7 @@ if requests is not None:
self.mount('https://', adapter) self.mount('https://', adapter)
def request(self, method, url, *args, **kwargs): def request(self, method, url, *args, **kwargs):
if ':' not in url: if not url.startswith('http'):
raise ValueError('Missing "http:" or "https:". Use a fully qualified URL, eg "http://testserver%s"' % url) raise ValueError('Missing "http:" or "https:". Use a fully qualified URL, eg "http://testserver%s"' % url)
return super(RequestsClient, self).request(method, url, *args, **kwargs) return super(RequestsClient, self).request(method, url, *args, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment