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

Query Params - difference between API GW and ALB #253

Closed
JCapriotti opened this issue Jun 27, 2021 · 0 comments · Fixed by #272
Closed

Query Params - difference between API GW and ALB #253

JCapriotti opened this issue Jun 27, 2021 · 0 comments · Fixed by #272

Comments

@JCapriotti
Copy link

I noticed if I go to a URL with a query string like this: ?x=foo%3Dbar

The event sent to a lambda from ALB contains:

"queryStringParameters":  {
    "x": "foo%3Dbar"
}

And the event sent from API Gateway contains:

"queryStringParameters":  {
    "x": "foo=bar"
}

For the ALB, the QUERY_STRING in the WSGI environment is set to:

x=foo%253Dbar

And for API Gateway, it is set to:

x=foo%3Dbar

So I think the processing of query params for ALB needs to not urlencode the data.

I am working on a PR for this and will hopefully submit later today.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant