Skip to content

Commit

Permalink
fix: pipe the body facepalm
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Sep 12, 2024
1 parent f6c7ac6 commit 71b6c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const fetch = async url => {
if (!res.ok) {
throw new Error(`failed to request: ${range} of: ${url}`)
}
await res.pipeTo(writable, { preventClose: true })
await res.body.pipeTo(writable, { preventClose: true })
}
await writable.close()
})()
Expand Down

0 comments on commit 71b6c12

Please sign in to comment.