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 Content-Type header, Remove MultiValueHeaders #7

Merged
merged 3 commits into from
May 2, 2024

Conversation

bramwelt
Copy link

@bramwelt bramwelt commented May 2, 2024

Sets the Content-Type header if not directly passed, and changes it from
'x-www-form-urlencoded' if the body looks like JSON.

Removes MultiValueHeaders as not all lambda support these.

Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Removes 'MultiValueHeaders' as some lambda do not support these.
Only sets 'Content-Type' when Content-Length > 0, and correctly checks
to body for the case when 'application/x-www-form-urlencoded' is set.

Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
@bramwelt bramwelt merged commit 5ac7182 into aws-lambda-v2.11 May 2, 2024
22 checks passed
@bramwelt bramwelt deleted the content-type branch May 2, 2024 22:56
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