From 342fb8ba128c1fbbf5195a7b5d56cb5b8f8fdca9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 16 Dec 2025 16:51:48 +0100 Subject: bump dependencies --- node_modules/undici/lib/cookies/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'node_modules/undici/lib/cookies/index.js') diff --git a/node_modules/undici/lib/cookies/index.js b/node_modules/undici/lib/cookies/index.js index c9c1f28..f867b19 100644 --- a/node_modules/undici/lib/cookies/index.js +++ b/node_modules/undici/lib/cookies/index.js @@ -1,7 +1,7 @@ 'use strict' const { parseSetCookie } = require('./parse') -const { stringify, getHeadersList } = require('./util') +const { stringify } = require('./util') const { webidl } = require('../fetch/webidl') const { Headers } = require('../fetch/headers') @@ -77,14 +77,13 @@ function getSetCookies (headers) { webidl.brandCheck(headers, Headers, { strict: false }) - const cookies = getHeadersList(headers).cookies + const cookies = headers.getSetCookie() if (!cookies) { return [] } - // In older versions of undici, cookies is a list of name:value. - return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair)) + return cookies.map((pair) => parseSetCookie(pair)) } /** -- cgit v1.3