Repository navigation
aws_lambda filter in json mode should use content-type header from json response - #16645
Merged
Merged
Conversation
…on response Signed-off-by: Jonathan Stewmon <[email protected]>
Contributor
Author
|
@rgs1 would you mind giving this small PR a review? |
rgs1
previously approved these changes
May 25, 2021
rgs1
left a comment
Member
There was a problem hiding this comment.
LGTM modulo some nits – over to @tonya11en for final review & merging. Thanks!
| } | ||
|
|
||
| /** | ||
| * encodeData() data in JSON mode should use respect content-type header. |
| } | ||
|
|
||
| // Use JSON as the default content-type. If the JSON response headers has a | ||
| // content-type key, it will override. |
Member
There was a problem hiding this comment.
nit: If the response headers have a different content-type set, that will be used instead.
Contributor
|
LGTM as well FWIW :) |
marcomagdy
reviewed
May 25, 2021
| --------- | ||
| *Changes expected to improve the state of the world and are unlikely to have negative effects* | ||
|
|
||
| * aws_lambda: in JSON mode, the downstream response content-type header will now be set from the content-type entry in the JSON response's headers map, if present. |
Contributor
There was a problem hiding this comment.
nit: I don't think there's a "JSON mode" per se. It's either normal or passthrough.
So, this should probably read "unless passthrough is on, the downstream response..."
Signed-off-by: Jonathan Stewmon <[email protected]>
leyao-daily
pushed a commit
to leyao-daily/envoy
that referenced
this pull request
Sep 30, 2021
…on response (envoyproxy#16645) Signed-off-by: Jonathan Stewmon <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: aws_lambda filter in json mode should use content-type header from json response
Additional Description: fixes #16615
Risk Level: Low
Testing: unit tested
Docs Changes: None - the new behavior conforms to the existing docs.
Release Notes: Bug fix mentioned in version history
Platform Specific Features: None
Fixes #16615