@@ -35615,7 +35615,7 @@ var require_util8 = __commonJS({
3561535615 var { InvalidArgumentError } = require_errors2();
3561635616 var { headerNameLowerCasedRecord } = require_constants7();
3561735617 var { tree } = require_tree();
35618- var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v) => Number(v));
35618+ var [nodeMajor, nodeMinor] = process.versions.node.split(".", 2 ).map((v) => Number(v));
3561935619 var BodyAsyncIterable = class {
3562035620 constructor(body) {
3562135621 this[kBody] = body;
@@ -45018,7 +45018,7 @@ var require_mock_utils2 = __commonJS({
4501845018 if (typeof path4 !== "string") {
4501945019 return path4;
4502045020 }
45021- const pathSegments = path4.split("?");
45021+ const pathSegments = path4.split("?", 3 );
4502245022 if (pathSegments.length !== 2) {
4502345023 return path4;
4502445024 }
@@ -46716,6 +46716,15 @@ var require_cache2 = __commonJS({
4671646716 if (!opts.origin) {
4671746717 throw new Error("opts.origin is undefined");
4671846718 }
46719+ const headers = normaliseHeaders(opts);
46720+ return {
46721+ origin: opts.origin.toString(),
46722+ method: opts.method,
46723+ path: opts.path,
46724+ headers
46725+ };
46726+ }
46727+ function normaliseHeaders(opts) {
4671946728 let headers;
4672046729 if (opts.headers == null) {
4672146730 headers = {};
@@ -46739,12 +46748,7 @@ var require_cache2 = __commonJS({
4673946748 } else {
4674046749 throw new Error("opts.headers is not an object");
4674146750 }
46742- return {
46743- origin: opts.origin.toString(),
46744- method: opts.method,
46745- path: opts.path,
46746- headers
46747- };
46751+ return headers;
4674846752 }
4674946753 function assertCacheKey(key) {
4675046754 if (typeof key !== "object") {
@@ -46933,6 +46937,7 @@ var require_cache2 = __commonJS({
4693346937 }
4693446938 module.exports = {
4693546939 makeCacheKey,
46940+ normaliseHeaders,
4693646941 assertCacheKey,
4693746942 assertCacheValue,
4693846943 parseCacheControlHeader,
@@ -47615,7 +47620,7 @@ var require_cache3 = __commonJS({
4761547620 var CacheHandler = require_cache_handler();
4761647621 var MemoryCacheStore = require_memory_cache_store();
4761747622 var CacheRevalidationHandler = require_cache_revalidation_handler();
47618- var { assertCacheStore, assertCacheMethods, makeCacheKey, parseCacheControlHeader } = require_cache2();
47623+ var { assertCacheStore, assertCacheMethods, makeCacheKey, normaliseHeaders, parseCacheControlHeader } = require_cache2();
4761947624 var { AbortError } = require_errors2();
4762047625 function needsRevalidation(result, cacheControlDirectives) {
4762147626 if (cacheControlDirectives == null ? void 0 : cacheControlDirectives["no-cache"]) {
@@ -47746,7 +47751,7 @@ var require_cache3 = __commonJS({
4774647751 withinStaleIfErrorThreshold = now < result.staleAt + staleIfErrorExpiry * 1e3;
4774747752 }
4774847753 let headers = {
47749- ...opts.headers ,
47754+ ...normaliseHeaders( opts) ,
4775047755 "if-modified-since": new Date(result.cachedAt).toUTCString()
4775147756 };
4775247757 if (result.etag) {
@@ -49840,7 +49845,9 @@ var require_fetch2 = __commonJS({
4984049845 originalURL.href,
4984149846 initiatorType,
4984249847 globalThis,
49843- cacheState
49848+ cacheState,
49849+ "",
49850+ response.status
4984449851 );
4984549852 }
4984649853 var markResourceTiming = performance.markResourceTiming;
@@ -50129,7 +50136,7 @@ var require_fetch2 = __commonJS({
5012950136 fetchParams.controller.fullTimingInfo = timingInfo;
5013050137 }
5013150138 fetchParams.controller.reportTimingSteps = () => {
50132- if (fetchParams.request.url.protocol !== "https:" ) {
50139+ if (!urlIsHttpHttpsScheme( fetchParams.request.url) ) {
5013350140 return;
5013450141 }
5013550142 timingInfo.endTime = unsafeEndTime;
@@ -52155,7 +52162,7 @@ var require_util12 = __commonJS({
5215552162 const extensionList = /* @__PURE__ */ new Map();
5215652163 while (position.position < extensions.length) {
5215752164 const pair = collectASequenceOfCodePointsFast(";", extensions, position);
52158- const [name, value = ""] = pair.split("=");
52165+ const [name, value = ""] = pair.split("=", 2 );
5215952166 extensionList.set(
5216052167 removeHTTPWhitespace(name, true, false),
5216152168 removeHTTPWhitespace(value, false, true)
0 commit comments