Skip to content

Commit 717c809

Browse files
committed
Fix pipeing a Web Stream to an ArrayStream
1 parent c2c0d53 commit 717c809

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
@@ -107,7 +107,7 @@ async function pipe(input, target, {
107107
preventAbort = false,
108108
preventCancel = false
109109
} = {}) {
110-
if (isStream(input) && !isArrayStream(input)) {
110+
if (isStream(input) && !isArrayStream(input) && !isArrayStream(target)) {
111111
input = toStream(input);
112112
try {
113113
if (input[externalBuffer]) {

0 commit comments

Comments
 (0)