We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ce217 commit 5f85b5fCopy full SHA for 5f85b5f
packages/middleware-sdk-s3/src/throw-200-exceptions.ts
@@ -48,6 +48,15 @@ export const throw200ExceptionsMiddleware =
48
return result;
49
}
50
51
+ const isSplittableStream =
52
+ typeof sourceBody?.stream === "function" ||
53
+ typeof sourceBody?.pipe === "function" ||
54
+ typeof sourceBody?.tee === "function";
55
+
56
+ if (!isSplittableStream) {
57
+ return result;
58
+ }
59
60
let bodyCopy = sourceBody;
61
let body = sourceBody;
62
0 commit comments