Skip to content

Commit

Permalink
fix: vercel fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Dec 7, 2022
1 parent 4e2397b commit 938bb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch-sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit 938bb7c

Please sign in to comment.