fix: end the browser speed test feed without a 410 or 502

This commit is contained in:
redtea committed 2026-10-13 22:33:42 +03:00
1 parent fd75f324b8
commit 189050b2b6
2 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@
for (var i = 0; i < n; i++) parts.push(block);
return fetch(base + '/speed/down', {method: 'POST', body: new Blob(parts), credentials: 'same-origin', signal: stop.signal})
.then(function (r) {
if (!r.ok) return;
if (r.status !== 204) return;
if (performance.now() - t < 500 && n < 256) n *= 2;
return one();
});