Skip to content

Commit d4f7df4

Browse files
fix(headers): fix getSetCookie by using 'get' method for caseless access; (#6874)
1 parent 1b1f9cc commit d4f7df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/AxiosHeaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class AxiosHeaders {
249249
}
250250

251251
getSetCookie() {
252-
return this["set-cookie"] || [];
252+
return this.get("set-cookie") || [];
253253
}
254254

255255
get [Symbol.toStringTag]() {

0 commit comments

Comments
 (0)