Skip to content

Commit

Permalink
Merge pull request #83 from Boegie19/fix-generateheaderkeys
Browse files Browse the repository at this point in the history
fix upercease useHeaders not being lowercased
  • Loading branch information
Boegie19 authored Mar 18, 2024
2 parents ad7b5a8 + 7767dbd commit 0e40778
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function generateHeadersKey(ctx, useHeaders = []) {
return useHeaders
.filter((k) => ctx.request.header[k] !== undefined)
.filter((k) => ctx.request.header[k.toLowerCase()] !== undefined)
.map((k) => `${k.toLowerCase()}=${ctx.request.header[k.toLowerCase()]}`) // headers are key insensitive
.join(',');
}
Expand Down

0 comments on commit 0e40778

Please sign in to comment.