Skip to content

Commit

Permalink
Follow-up fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Jul 14, 2021
1 parent 854430f commit 3df52f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/index.ts
Expand Up @@ -938,7 +938,7 @@ export default class Request extends Duplex implements RequestEvents<Request> {

if (is.nodeStream(body)) {
body.pipe(currentRequest);
} else if (is.generator(body)) {
} else if (is.generator(body) || is.asyncGenerator(body)) {
(async () => {
try {
for await (const chunk of body) {
Expand Down

0 comments on commit 3df52f3

Please sign in to comment.