Override HTTPAdapter.request_url
Override `HTTPAdapter.request_url`, so that it doesn't call `select_proxy`. Fixes: GH-21 See: https://github.com/kennethreitz/requests/issues/3131#issuecomment-214792914
This commit is contained in:
@@ -58,3 +58,6 @@ class UnixAdapter(HTTPAdapter):
|
|||||||
raise ValueError('%s does not support specifying proxies'
|
raise ValueError('%s does not support specifying proxies'
|
||||||
% self.__class__.__name__)
|
% self.__class__.__name__)
|
||||||
return UnixHTTPConnectionPool(socket_path, self.timeout)
|
return UnixHTTPConnectionPool(socket_path, self.timeout)
|
||||||
|
|
||||||
|
def request_url(self, request, proxies):
|
||||||
|
return request.path_url
|
||||||
|
|||||||
Reference in New Issue
Block a user