mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
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:
1 parent
fc48eda113
commit
3533b323b0
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user