Skip to content

Commit af1fbf2

Browse files
richarddavisonkuhe
authored andcommitted
Update stream collector
1 parent 9f3ddeb commit af1fbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fetch-http-handler/src/stream-collector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { StreamCollector } from "@smithy/types";
22

33
//reference: https://snack.expo.io/r1JCSWRGU
4-
export const streamCollector: StreamCollector = (stream: Blob | ReadableStream): Promise<Uint8Array> => {
4+
export const streamCollector: StreamCollector = async (stream: Blob | ReadableStream): Promise<Uint8Array> => {
55
if (typeof Blob === "function" && stream instanceof Blob) {
66
return new Uint8Array(await stream.arrayBuffer());
77
}

0 commit comments

Comments
 (0)