From 5a099bef669122d4893af4929a9f1331e11b2213 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 3 Jun 2020 11:51:42 +0800 Subject: [PATCH] bugfix --- kivyblocks/threadcall.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kivyblocks/threadcall.py b/kivyblocks/threadcall.py index aa50f1e..3e1add6 100644 --- a/kivyblocks/threadcall.py +++ b/kivyblocks/threadcall.py @@ -83,6 +83,7 @@ hostsessions = {} class HttpClient: def __init__(self): self.s = requests.Session() + self.s.verify = False self.workers = App.get_running_app().workers def url2domain(self,url): @@ -105,10 +106,10 @@ class HttpClient: # print('headers=',headers) if method in ['GET']: req = requests.Request(method,url, - params=params,headers=headers,verify=False) + params=params,headers=headers) else: req = requests.Request(method,url, - data=params,files=files,headers=headers,verify=False) + data=params,files=files,headers=headers) prepped = self.s.prepare_request(req) resp = self.s.send(prepped) if resp.status_code == 200: