diff --git a/request.py b/request.py index f41bcba..ca8f591 100644 --- a/request.py +++ b/request.py @@ -6,7 +6,7 @@ def get_new_session(**kwargs): # 优先使用httpx,在httpx无法使用的环境下使用requests import httpx - http_client = httpx.Client(timeout=20, transport=httpx.HTTPTransport(retries=10), follow_redirects=True, + http_client = httpx.Client(timeout=30, transport=httpx.HTTPTransport(retries=10), follow_redirects=True, **kwargs) # 当openssl版本小于1.0.2的时候直接进行一个空请求让httpx报错 import tools