From 45beb6bdfb9b5bac4c70ece510a88995820fd8e6 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Sun, 24 Mar 2019 11:29:07 +0800 Subject: [PATCH] chg: dev: ca_certs for get_PoolManager --- buku | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buku b/buku index e293c76..6f98cca 100755 --- a/buku +++ b/buku @@ -3393,17 +3393,17 @@ def get_PoolManager(): ProxyManager or PoolManager ProxyManager if https_proxy is defined, PoolManager otherwise. """ - + ca_certs = os.getenv('BUKU_CA_CERTS', default=certifi.where()) if MYPROXY: return urllib3.ProxyManager(MYPROXY, num_pools=1, headers=MYHEADERS, timeout=15, - cert_reqs='CERT_REQUIRED', ca_certs=certifi.where()) + cert_reqs='CERT_REQUIRED', ca_certs=ca_certs) return urllib3.PoolManager( num_pools=1, headers=MYHEADERS, timeout=15, cert_reqs='CERT_REQUIRED', - ca_certs=certifi.where()) + ca_certs=ca_certs) def network_handler(url, http_head=False):