Merge "Code clean-up in client.py"
This commit is contained in:
commit
a0bf314c0e
@ -171,8 +171,6 @@ class HTTPClient(object):
|
|||||||
return resp, body
|
return resp, body
|
||||||
except exceptions.Unauthorized:
|
except exceptions.Unauthorized:
|
||||||
self.authenticate()
|
self.authenticate()
|
||||||
kwargs.setdefault('headers', {})
|
|
||||||
kwargs['headers']['X-Auth-Token'] = self.auth_token
|
|
||||||
resp, body = self._cs_request(
|
resp, body = self._cs_request(
|
||||||
self.endpoint_url + url, method, **kwargs)
|
self.endpoint_url + url, method, **kwargs)
|
||||||
return resp, body
|
return resp, body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user