Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api-gateway-v2): remove duplicate cookies for function URLs #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

THOUSAND-SKY
Copy link

Function URLs get cookies twice, in headers and the cookies array, which was causing them to duplicate. This will overwrite rather than duplicate.

Ref: awslabs/aws-lambda-rust-runtime#586

Function URLs use the same apigatewayv2 payload otherwise.

Function URLs get cookies twice, in headers and the `cookies` array, which was causing them to duplicate.

Ref: awslabs/aws-lambda-rust-runtime#586
Today, out of the blue, function URLs started escaping the `rawQueryString`, which resulted in double escaping which breaks everything.

The query string is available on `event.queryStringParameters`, though, and that "just works."
@THOUSAND-SKY
Copy link
Author

Today function my remix app behind a function URL broke for me suddenly. It seems to me that AWS started escaping the rawQueryString. I don't know why they'd suddenly change stuff like that.

I added another commit here just for visibility; I am not sure the cookie one is needed anymore (but doesn't hurt).

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.

1 participant