Skip to content

Commit

Permalink
fix(api-gateway-v2-adapter): Use headers.entries().
Browse files Browse the repository at this point in the history
  • Loading branch information
gotgenes committed Oct 11, 2024
1 parent 3c2e4a4 commit 3a5e651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/api-gateway-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function sendRemixResponse(
const cookies: string[] = []

// AWS API Gateway will send back set-cookies outside of response headers.
for (const [key, values] of Object.entries(nodeResponse.headers.raw())) {
for (const [key, values] of nodeResponse.headers.entries()) {
if (key.toLowerCase() === 'set-cookie') {
for (const value of values) {
cookies.push(value)
Expand Down

0 comments on commit 3a5e651

Please sign in to comment.