commit
This commit is contained in:
parent
13ec9babde
commit
68f4b60012
1429 changed files with 2481 additions and 272836 deletions
9
node_modules/undici/lib/fetch/response.js
generated
vendored
9
node_modules/undici/lib/fetch/response.js
generated
vendored
|
@ -348,9 +348,7 @@ function makeNetworkError (reason) {
|
|||
status: 0,
|
||||
error: isError
|
||||
? reason
|
||||
: new Error(reason ? String(reason) : reason, {
|
||||
cause: isError ? reason : undefined
|
||||
}),
|
||||
: new Error(reason ? String(reason) : reason),
|
||||
aborted: reason && reason.name === 'AbortError'
|
||||
})
|
||||
}
|
||||
|
@ -469,7 +467,7 @@ function initializeResponse (response, init, body) {
|
|||
|
||||
// 5. If init["headers"] exists, then fill response’s headers with init["headers"].
|
||||
if ('headers' in init && init.headers != null) {
|
||||
fill(response[kState].headersList, init.headers)
|
||||
fill(response[kHeaders], init.headers)
|
||||
}
|
||||
|
||||
// 6. If body was given, then:
|
||||
|
@ -571,5 +569,6 @@ module.exports = {
|
|||
makeResponse,
|
||||
makeAppropriateNetworkError,
|
||||
filterResponse,
|
||||
Response
|
||||
Response,
|
||||
cloneResponse
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue