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

base64 decode the request body instead of encoding it a second time #12219

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

mangs
Copy link
Contributor

@mangs mangs commented Jun 27, 2024

What does this PR do?

The Bun lambda layer is correctly identifying when a request body is base64 encoded. However, instead of base64 decoding it, it encodes it a second time. This PR corrects the mistake.

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

Tested on an AWS environment. This package didn't have any tests before so I just performed manual testing.

@mangs mangs marked this pull request as ready for review July 1, 2024 15:14
@mangs
Copy link
Contributor Author

mangs commented Jul 1, 2024

I just verified this on our AWS staging environment using a real lambda layer. This change appears to work correctly.

@Jarred-Sumner Jarred-Sumner merged commit 86fd136 into oven-sh:main Jul 1, 2024
1 check was pending
@mangs mangs deleted the request-body-base64-decode branch July 1, 2024 19:26
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.

2 participants