Skip to content

Commit

Permalink
fix: Make SAML HTTP header logic case-insensitive. (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Pete Wood <[email protected]>
  • Loading branch information
peteawood and Pete Wood authored Nov 10, 2024
1 parent 2cb47cc commit 64bdd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containerize.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ async function samlListener(details) {
async function process(result) {
onGot(result);

const setCookie = details.responseHeaders.find(header => header.name == "set-cookie");
const redirectUrl = details.responseHeaders.find(header => header.name == "location").value;
const setCookie = details.responseHeaders.find(header => header.name.toLowerCase() == "set-cookie");
const redirectUrl = details.responseHeaders.find(header => header.name.toLowerCase() == "location").value;

const cookies = setCookie.value.split('\n').map(fullCookie => fullCookie.split("; ").map(cookiePart => cookiePart.split('=')));

Expand Down

0 comments on commit 64bdd7b

Please sign in to comment.