Skip to content

Commit 1968044

Browse files
committed
Fix pipeing a Web Stream to an ArrayStream
1 parent 1904af0 commit 1968044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/streams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async function pipe(input, target, {
110110
preventAbort = false,
111111
preventCancel = false
112112
} = {}) {
113-
if (isStream(input) && !isArrayStream(input)) {
113+
if (isStream(input) && !isArrayStream(input) && !isArrayStream(target)) {
114114
input = toStream(input);
115115
try {
116116
if (input[externalBuffer]) {

0 commit comments

Comments
 (0)