diff --git a/lib/fetch/index.js b/lib/fetch/index.js index 4d38f7a4147..06fd8a1d589 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -41,7 +41,7 @@ const { urlIsLocal, urlIsHttpHttpsScheme, urlHasHttpsScheme, - clampAndCoursenConnectionTimingInfo, + clampAndCoarsenConnectionTimingInfo, simpleRangeHeaderValue, buildContentRange, createInflate @@ -2095,7 +2095,7 @@ async function httpNetworkFetch ( // connection timing info with connection’s timing info, timingInfo’s post-redirect start // time, and fetchParams’s cross-origin isolated capability. // TODO: implement connection timing - timingInfo.finalConnectionTimingInfo = clampAndCoursenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability) + timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability) if (connection.destroyed) { abort(new DOMException('The operation was aborted.', 'AbortError')) diff --git a/lib/fetch/util.js b/lib/fetch/util.js index 7e917f019d0..b179145c825 100644 --- a/lib/fetch/util.js +++ b/lib/fetch/util.js @@ -274,7 +274,7 @@ function coarsenTime (timestamp, crossOriginIsolatedCapability) { } // https://fetch.spec.whatwg.org/#clamp-and-coarsen-connection-timing-info -function clampAndCoursenConnectionTimingInfo (connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) { +function clampAndCoarsenConnectionTimingInfo (connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) { if (!connectionTimingInfo?.startTime || connectionTimingInfo.startTime < defaultStartTime) { return { domainLookupStartTime: defaultStartTime, @@ -1220,7 +1220,7 @@ module.exports = { ReadableStreamFrom, toUSVString, tryUpgradeRequestToAPotentiallyTrustworthyURL, - clampAndCoursenConnectionTimingInfo, + clampAndCoarsenConnectionTimingInfo, coarsenedSharedCurrentTime, determineRequestsReferrer, makePolicyContainer,