From d4f7df4b304af8b373488fdf8e830793ff843eb9 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Mon, 14 Apr 2025 22:38:27 +0300 Subject: [PATCH] fix(headers): fix `getSetCookie` by using 'get' method for caseless access; (#6874) --- lib/core/AxiosHeaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/AxiosHeaders.js b/lib/core/AxiosHeaders.js index fd996a3..42a10ca 100644 --- a/lib/core/AxiosHeaders.js +++ b/lib/core/AxiosHeaders.js @@ -249,7 +249,7 @@ class AxiosHeaders { } getSetCookie() { - return this["set-cookie"] || []; + return this.get("set-cookie") || []; } get [Symbol.toStringTag]() {