Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Mar 20, 2022
1 parent 00922aa commit 3058d3a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1707,16 +1707,12 @@ async function httpNetworkFetch (
})()

try {
const res = await dispatch()
const { body, status, statusText, headersList } = await dispatch()

const iterator = res.body[Symbol.asyncIterator]()
const iterator = body[Symbol.asyncIterator]()
context.next = () => iterator.next()

response = makeResponse({
status: res.status,
statusText: res.statusText,
headersList: res.headersList
})
response = makeResponse({ status, statusText, headersList })
} catch (err) {
// 10. If aborted, then:
if (err.name === 'AbortError') {
Expand Down

0 comments on commit 3058d3a

Please sign in to comment.