diff options
author | Davide Guerri <davide.guerri@hp.com> | 2013-11-25 10:42:56 +0000 |
---|---|---|
committer | Davide Guerri <davide.guerri@hp.com> | 2013-12-10 12:12:28 +0000 |
commit | 716b4e722c98396dc1477a04120eb0fedf388799 (patch) | |
tree | ab6e0ebde0c7b3972d72445f0a2dd6ec04751bcf /swiftclient/command_helpers.py | |
parent | 04e0cb27839cec474bce383d4364fd76dcb6e4b2 (diff) | |
download | python-swiftclient-716b4e722c98396dc1477a04120eb0fedf388799.tar.gz |
Enable usage of proxies defined in environment (http(s)_proxy).
As far as proxies usage is concerned, keystone-client API and swift-client API behave differently because the former uses python Request library while the latter uses raw httplib. As a result, Keystone authentication honors environment variables http_proxy, https_proxy and no_proxy while Swift doesn't.
This patch, which code is mainly borrowed from Python Requests, makes Swift
data connections and Swift authentication connections behaving homogeneously.
Change-Id: Ic8a0089c35c458d7ed96e572e22429014298fe4c
Diffstat (limited to 'swiftclient/command_helpers.py')
0 files changed, 0 insertions, 0 deletions