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

[backport -> release/3.8.x] fix(aws-lambda): add null handling for multiValueHeaders #13796

Open
wants to merge 1 commit into
base: release/3.8.x
Choose a base branch
from

Conversation

team-gateway-bot
Copy link
Collaborator

Automated backport to release/3.8.x, triggered by a label in #13533.

Original description

Summary

A small PR for adding a null handling code for the multiValueHeaders field. Also contains a small refactor to put isBase64Encode check into the validate function to keep consistency with other fields

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

FTI-6168

A small PR for adding a null handling code for the multiValueHeaders field. Also contains a small refactor to put isBase64Encode check into the validate function to keep consistency with other fields

FTI-6168

(cherry picked from commit 50c57c8)
@@ -89,6 +90,10 @@ local function validate_custom_response(response)
return nil, "body must be a string"
end

if response.isBase64Encoded ~= nil and type(response.isBase64Encoded) ~= "boolean" then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if response.isBase64Encoded ~= nil and type(response.isBase64Encoded) ~= "boolean" then
if type(response.isBase64Encoded) ~= "boolean" then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee plugins/aws-lambda size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants