From 3533b323b0823e7c12e0d3de9a82d8f97467069c Mon Sep 17 00:00:00 2001 From: Said Turksever Date: Thu, 15 Oct 2026 14:28:37 +0100 Subject: [PATCH] fix(radio): keep the || 500 fallback for a missing mirror status Node always sets statusCode on client responses, but keeping the fallback stops a missing status from reading as 200, as main did. Co-Authored-By: Claude Opus 5.5 --- server/providers/radio/transport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/providers/radio/transport.js b/server/providers/radio/transport.js index c9922bb2f..c4b7f2b5b 100644 --- a/server/providers/radio/transport.js +++ b/server/providers/radio/transport.js @@ -130,7 +130,7 @@ export function fetchPinnedRadioResponse(url, options, addresses) { // Nothing thrown here may escape: this callback runs outside the // promise, so an exception would be uncaught and crash the server. try { - const status = response.statusCode; + const status = response.statusCode || 500; // A `Response` only represents statuses up to 599; Node never hands // this callback a 1xx. if (status > 599)