Skip to content

Commit 6301265

Browse files
authored
docs(README): correct the example code for the consumption of response body (#4658)
1 parent 9271564 commit 6301265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ Note that consuming the response body is _mandatory_ for `request`:
518518
```js
519519
// Do
520520
const { body, headers } = await request(url);
521-
await res.body.dump(); // force consumption of body
521+
await body.dump(); // force consumption of body
522522

523523
// Do not
524524
const { headers } = await request(url);

0 commit comments

Comments
 (0)