fix sse check

This commit is contained in:
Tomer Zait 2025-04-30 17:38:53 +03:00
parent 5a38b58f63
commit d4c5b41cdc

View file

@ -162,7 +162,7 @@ export async function connectToRemoteServer(
if (
error instanceof Error &&
shouldAttemptFallback &&
(sseTransport
(!sseTransport
? error.message.includes('405') || error.message.includes('Method Not Allowed')
: error.message.includes('404') || error.message.includes('Not Found'))
) {