Skip to content

Commit 3df52f3

Browse files
committedJul 14, 2021
Follow-up fix
1 parent 854430f commit 3df52f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎source/core/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ export default class Request extends Duplex implements RequestEvents<Request> {
938938

939939
if (is.nodeStream(body)) {
940940
body.pipe(currentRequest);
941-
} else if (is.generator(body)) {
941+
} else if (is.generator(body) || is.asyncGenerator(body)) {
942942
(async () => {
943943
try {
944944
for await (const chunk of body) {

0 commit comments

Comments
 (0)
Please sign in to comment.