From 658f1e80e0197da16a4ea8cb84af44b5ff4581f6 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 7 Dec 2022 15:03:42 -0600 Subject: [PATCH] fix: vercel fetch --- legacy/src/fetch-sse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/src/fetch-sse.ts b/legacy/src/fetch-sse.ts index 3dc4352a..40f2c6fd 100644 --- a/legacy/src/fetch-sse.ts +++ b/legacy/src/fetch-sse.ts @@ -24,7 +24,7 @@ export async function fetchSSE( // web standards, so this is a workaround... const body: NodeJS.ReadableStream = res.body as any - if (body.on || !body.read) { + if (!body.on || !body.read) { throw new Error('unsupported "fetch" implementation') }