Skip to content

Commit

Permalink
test: fix test util to work with old/normal responses (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus authored Oct 10, 2023
1 parent eea15f8 commit 1c3a042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ module.exports.extractInfoFromResponse = function (res) {
}
headers = Object.fromEntries(res.headers.entries());
} else {
headers = res.headers;
let cookies = res.headers["set-cookie"] || res.headers["Set-Cookie"];
cookies = cookies === undefined ? [] : cookies;
if (!Array.isArray(cookies)) {
Expand Down

0 comments on commit 1c3a042

Please sign in to comment.