Skip to content

Commit 4566f48

Browse files
committed
fixup! Fix pipeing a Web Stream to an ArrayStream
1 parent ed6a0d1 commit 4566f48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/streams.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ async function pipe(input, target, {
129129
} catch(e) {}
130130
return;
131131
}
132-
input = toArrayStream(input);
132+
if (!isStream(input)) {
133+
input = toArrayStream(input);
134+
}
133135
const reader = getReader(input);
134136
const writer = getWriter(target);
135137
try {

0 commit comments

Comments
 (0)