Skip to content

Commit

Permalink
docs: fix typo in sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
snyamathi authored Jan 26, 2022
1 parent 5d52423 commit bd974d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ stalls or deadlocks when running out of connections.
// Do
const headers = await fetch(url)
.then(async res => {
for await (const chunk of res) {
for await (const chunk of res.body) {
// force consumption of body
}
return res.headers
Expand Down

0 comments on commit bd974d4

Please sign in to comment.