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

#178 alb url double encoding #184

Merged

Conversation

nathanglover
Copy link
Contributor

@nathanglover nathanglover commented Apr 18, 2021

I believe this closes issue #178. See the issue for a discussion of the bug. Tests pass, and I have tested this on a lambda function being served by an ALB.

In short: "If the query parameters are URL-encoded, the load balancer does not decode them. You must decode them in your Lambda function."
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html

Thanks to @jurasofish for initially finding the issue and writing the failing test. This PR includes his commit from #179, which can be closed if this PR is merged.

I don't know if something similar needs to be applied to the other handlers, not as familiar / not using those trigger methods.

Minor mishap with GitHub which is why #183 got closed... my bad.

@jordaneremieff
Copy link
Collaborator

Thanks!

@jordaneremieff jordaneremieff merged commit 0390502 into Kludex:main Apr 20, 2021
khamaileon pushed a commit to khamaileon/mangum that referenced this pull request Jan 13, 2024
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.

3 participants