chg: dev: ca_certs for check_upstream_release

This commit is contained in:
rachmadaniHaryono 2019-03-24 11:37:46 +08:00
parent 45beb6bdfb
commit 63ebedb172

5
buku
View File

@ -4225,19 +4225,20 @@ def check_upstream_release():
if MYPROXY is None:
gen_headers()
ca_certs = os.getenv('BUKU_CA_CERTS', default=certifi.where())
if MYPROXY:
manager = urllib3.ProxyManager(
MYPROXY,
num_pools=1,
headers=MYHEADERS,
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where()
ca_certs=ca_certs
)
else:
manager = urllib3.PoolManager(num_pools=1,
headers={'User-Agent': USER_AGENT},
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where())
ca_certs=ca_certs)
try:
r = manager.request(