Reverted the update
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
This commit is contained in:
13
node_modules/undici/lib/fetch/index.js
generated
vendored
13
node_modules/undici/lib/fetch/index.js
generated
vendored
@ -286,7 +286,7 @@ function finalizeAndReportTiming (response, initiatorType = 'other') {
|
||||
}
|
||||
|
||||
// 8. If response’s timing allow passed flag is not set, then:
|
||||
if (!response.timingAllowPassed) {
|
||||
if (!timingInfo.timingAllowPassed) {
|
||||
// 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
|
||||
timingInfo = createOpaqueTimingInfo({
|
||||
startTime: timingInfo.startTime
|
||||
@ -1203,9 +1203,6 @@ function httpRedirectFetch (fetchParams, response) {
|
||||
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
||||
request.headersList.delete('authorization')
|
||||
|
||||
// https://fetch.spec.whatwg.org/#authentication-entries
|
||||
request.headersList.delete('proxy-authorization', true)
|
||||
|
||||
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
||||
request.headersList.delete('cookie')
|
||||
request.headersList.delete('host')
|
||||
@ -1960,7 +1957,7 @@ async function httpNetworkFetch (
|
||||
path: url.pathname + url.search,
|
||||
origin: url.origin,
|
||||
method: request.method,
|
||||
body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
|
||||
body: fetchParams.controller.dispatcher.isMockActive ? request.body && request.body.source : body,
|
||||
headers: request.headersList.entries,
|
||||
maxRedirections: 0,
|
||||
upgrade: request.mode === 'websocket' ? 'websocket' : undefined
|
||||
@ -2005,7 +2002,7 @@ async function httpNetworkFetch (
|
||||
location = val
|
||||
}
|
||||
|
||||
headers[kHeadersList].append(key, val)
|
||||
headers.append(key, val)
|
||||
}
|
||||
} else {
|
||||
const keys = Object.keys(headersList)
|
||||
@ -2019,7 +2016,7 @@ async function httpNetworkFetch (
|
||||
location = val
|
||||
}
|
||||
|
||||
headers[kHeadersList].append(key, val)
|
||||
headers.append(key, val)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2123,7 +2120,7 @@ async function httpNetworkFetch (
|
||||
const key = headersList[n + 0].toString('latin1')
|
||||
const val = headersList[n + 1].toString('latin1')
|
||||
|
||||
headers[kHeadersList].append(key, val)
|
||||
headers.append(key, val)
|
||||
}
|
||||
|
||||
resolve({
|
||||
|
Reference in New Issue
Block a user