fix: 使用 HEAD 请求以规避 GET 测试时下个没完的情况

This commit is contained in:
abc1763613206
2025-02-14 00:27:08 +08:00
parent af3e85e11b
commit d305d74f06

View File

@@ -51,7 +51,7 @@ def check_channel(clist, num):
with httpx.Client(timeout=0.5) as client:
ReqStatus = False
try:
r = client.get(clist[3], follow_redirects=True)
r = client.head(clist[3], follow_redirects=True)
if r.status_code == 200:
ReqStatus = True
except httpx.UnsupportedProtocol: