chg: dev: ca_certs for check_upstream_release
This commit is contained in:
parent
45beb6bdfb
commit
63ebedb172
5
buku
5
buku
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user