Skip to content

fix: support passing CAT in CloudFront querystring#53

Merged
birme merged 1 commit intoEyevinn:mainfrom
stevensdavid:main
May 20, 2025
Merged

fix: support passing CAT in CloudFront querystring#53
birme merged 1 commit intoEyevinn:mainfrom
stevensdavid:main

Conversation

@stevensdavid
Copy link
Copy Markdown
Contributor

The code for fetching a CAT from the querystring looks at the incoming URL. The code for translating a Lambda@edge request to the expected node:http IncomingMessage doesn't include the querystring at all, leading to it being impossible to pass a CAT in the querystring when using Lambda@edge.

This commit fixes this by including the querystring in the passed URL if it is set.

The code for fetching a CAT from the querystring looks at the incoming
URL. The code for translating a Lambda@edge request to the expected
`node:http` `IncomingMessage` doesn't include the querystring at all,
leading to it being impossible to pass a CAT in the querystring when
using Lambda@edge.

This commit fixes this by including the querystring in the passed URL if
it is set.
Copy link
Copy Markdown
Contributor

@birme birme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks!

@birme birme merged commit 21277c1 into Eyevinn:main May 20, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants