From 392f6a737cf99448d86224a4769b91741a75c6f5 Mon Sep 17 00:00:00 2001 From: 3970260761 <3970260761@qq.com> Date: Sun, 8 Nov 2026 01:00:03 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.14=20fix:=20=E7=BD=91=E7=BB=9C=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=B5=8B=E9=80=9F=E6=94=B9=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?UA(Cloudflare=E6=8B=A6=E9=BB=98=E8=AE=A4UA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index cbceb84..5695456 100644 --- a/app.py +++ b/app.py @@ -598,7 +598,8 @@ def _bench_net(): t0 = time.perf_counter() req = _urlreq.Request("https://speed.cloudflare.com/__up", data=payload, method="POST", - headers={"Content-Type": "application/octet-stream"}) + headers={"Content-Type": "application/octet-stream", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"}) with _urlreq.urlopen(req, timeout=25) as r: r.read() dt = max(time.perf_counter() - t0, 1e-6)