feat: 移除不必要的重定向和SSL验证选项以简化请求配置
This commit is contained in:
parent
89ecb07ede
commit
2c4477aa51
2
main.py
2
main.py
@ -158,8 +158,6 @@ def post_with_retry(url, proxy_name, json_payload=None, data=None, headers=None,
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
proxies=proxies,
|
proxies=proxies,
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
allow_redirects=True, # 允许重定向
|
|
||||||
verify=False, # 不验证 SSL 证书
|
|
||||||
)
|
)
|
||||||
if resp.status_code == 401 and not token_refreshed:
|
if resp.status_code == 401 and not token_refreshed:
|
||||||
if verbose:
|
if verbose:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user