From df627aa77a9008746d23f01f347a7e1dc359414b Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Sun, 9 Jul 2023 17:46:39 +0100 Subject: [PATCH] fix(streaming): fix response body streaming in non-Chrome environments (#38) --- src/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming.ts b/src/streaming.ts index 9946eaed..15651545 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -262,7 +262,7 @@ function partition(str: string, delimiter: string): [string, string, string] { * This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1624185965 */ function readableStreamAsyncIterable(stream: any): AsyncIterableIterator { - if (stream[Symbol.asyncIterator]) return stream[Symbol.asyncIterator]; + if (stream[Symbol.asyncIterator]) return stream; const reader = stream.getReader(); return {