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)