fixed url checker ':' to 'http'

This commit is contained in:
Ashraful Islam 2016-11-14 15:39:38 +06:00
parent 24791cb353
commit 24b19c3c3e

View File

@ -114,7 +114,7 @@ if requests is not None:
self.mount('https://', adapter)
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)
return super(RequestsClient, self).request(method, url, *args, **kwargs)