Skip to content

Commit

Permalink
attempt to read only first header
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Feb 1, 2024
1 parent 770212a commit 708cd95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const main: APIGatewayTokenAuthorizerHandler = async (
const authToken = event.authorizationToken.replace('Bearer ', '')
try {
const parsedEvent = JSON.parse(JSON.stringify(event))
const host = parsedEvent.headers.Host
const host = parsedEvent.headers[0].Host
console.info({
message: `${parsedEvent.headers.Host}`,
operation: 'parsed event',
Expand Down

0 comments on commit 708cd95

Please sign in to comment.