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 <[email protected]>
This commit is contained in:
Said TurkseverandClaude Opus 5.5 committed 2026-10-15 14:28:37 +01:00
1 parent fc48eda113
commit 3533b323b0
1 file changed
+1 -1
+1 -1
View File
@@ -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)