Use signer proxy for all http(s) requests

This commit is contained in:
Evan Cordell 2016-04-27 10:07:24 -05:00 committed by Jimmy Zelinskie
parent f4d2fae5d8
commit 8595140f38

View file

@ -5,7 +5,7 @@ from data.database import CloseForLongOperation
from data import model
from data.model.storage import get_storage_locations
from urlparse import urljoin, urlparse
from urlparse import urljoin
from util.secscan.validator import SecurityConfigValidator
logger = logging.getLogger(__name__)
@ -261,5 +261,6 @@ class SecurityScannerAPI(object):
return client.request(method, url, json=body, params=params, timeout=timeout,
cert=self._keys, verify='/conf/mitm.cert', headers=headers,
proxies={
urlparse(signer_proxy_url).scheme: signer_proxy_url
'https': signer_proxy_url,
'http': signer_proxy_url
})