Skip to content

Commit

Permalink
Update packages/kit/src/runtime/server/endpoint.js
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
vicky1999 and bluwy committed Jan 29, 2022
1 parent b20f187 commit 533f4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function is_pojo(body) {
if (body._readableState && body._writableState && body._events) return false;

// similarly, it could be a web ReadableStream
if (typeof ReadableStream !== undefined && body instanceof ReadableStream) return false;
if (typeof ReadableStream !== 'undefined' && body instanceof ReadableStream) return false;
}

return true;
Expand Down

0 comments on commit 533f4a8

Please sign in to comment.