From e541b2c12ac90cab1942c79fd60b8a9002becda7 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 26 Nov 2022 10:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=87=E7=BA=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=AF=BC=E8=87=B4=E7=9A=84U2=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index ce4e5f3..40236a6 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -609,9 +609,6 @@ class PtSpider: message = site.sign_in_params if len(site.sign_in_params) >= 5 else '天空飘来五个字儿,幼儿园里没有事儿' logger.info(submit_name) logger.info(submit_value) - headers = { - "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" - } param = [] for name, value in zip(submit_name, submit_value): param.append({ @@ -629,7 +626,6 @@ class PtSpider: my_site, url=site.url + site.page_sign_in.lstrip('/') + '?action=show', method=site.sign_in_method, - headers=headers, data=data, ) logger.info(response.content.decode('utf8'))