Skip to content

Commit

Permalink
Update packages/node-http-handler/src/stream-collector/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Trivikram Kamat <[email protected]>
  • Loading branch information
kuhe and trivikr committed May 6, 2024
1 parent f903622 commit 8581e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node-http-handler/src/stream-collector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Collector } from "./collector";

export const streamCollector: StreamCollector = (stream: Readable | ReadableStream): Promise<Uint8Array> => {
if (isReadableStreamInstance(stream)) {
// web stream in Node.js indicates user has overridden requestHandler with FetchHttpHandler.
// Web stream API in Node.js
return collectReadableStream(stream);
}
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 8581e8a

Please sign in to comment.