Skip to content
New issue

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

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

Already on GitHub? # 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.

bramwelt added 2 commits May 2, 2024 03:27
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant