summary refs log tree commit diff
path: root/src/gateway/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-06-23 05:53:09 +0200
committerRory& <root@rory.gay>2026-06-23 05:53:09 +0200
commit6751174792969e36e5afb01784d00236578f444f (patch)
tree57da1a5838e5152dedc36629aaaf0d935a6fe6a5 /src/gateway/util
parentClose: use session as predicate rather than session_id due to early init (diff)
downloadserver-ts-dev/lazyrequest.tar.xz
Member list kinda works now? github/dev/lazyrequest dev/lazyrequest
Diffstat (limited to 'src/gateway/util')
-rw-r--r--src/gateway/util/Utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/util/Utils.ts b/src/gateway/util/Utils.ts

index ad5cd21f..bbb05436 100644 --- a/src/gateway/util/Utils.ts +++ b/src/gateway/util/Utils.ts
@@ -113,7 +113,7 @@ export async function handleOffloadedGatewayRequest(socket: WebSocket, url: stri if (!resp.ok) { const text = await resp.text(); console.error(`[Gateway] Offloaded request to ${url} failed with status ${resp.status}: ${text}`); - if (resp.status === 415) console.log(typeof body, body); + if (resp.status === 415 || resp.status === 400) console.log(typeof body, body); throw new Error(`Offloaded request failed with status ${resp.status}: ${text}`); }