Skip to content

fix issue #220, using treemap #234

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

Closed
wants to merge 7 commits into from

Conversation

jeromevdl
Copy link
Contributor

Issue #, if available: #220

Description of changes: Using TreeMap (and CASE_INSENSITIVE_ORDER initialisation) within a custom Header object.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@msailes
Copy link
Collaborator

msailes commented Jun 1, 2021

Has this been tested on the AWS platform?

@jeromevdl
Copy link
Contributor Author

Has this been tested on the AWS platform?

Yes, LB and API GW were tested, I removed websockets

@msailes
Copy link
Collaborator

msailes commented Jun 1, 2021

Thanks! @jeromevdl

Comment on lines +956 to +964
if (headers == null || headers.isEmpty()) {
this.headers = null;
return;
}

if (this.headers == null) {
this.headers = new HttpHeaders<>();
}
this.headers.putAll(headers);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking change for consumers using setHeaders and expecting it to override all previous values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, we need to remove if (this.headers == null)

parawanderer added a commit to parawanderer/aws-lambda-java-libs that referenced this pull request Dec 22, 2021
This solution builds upon @jeromevdl 's solution of PR aws#234 to fix the
issue of headers being case sensitive. Fixes @carlzogh 's comment
regarding breaking changes in setHeaders.
parawanderer added a commit to parawanderer/aws-lambda-java-libs that referenced this pull request Dec 22, 2021
This solution builds upon @jeromevdl 's solution of PR aws#234 to fix the
issue of headers being case sensitive. Fixes @carlzogh 's comment
regarding breaking changes in setHeaders.
parawanderer added a commit to parawanderer/aws-lambda-java-libs that referenced this pull request Dec 22, 2021
 This solution builds upon @jeromevdl 's solution of PR aws#234 to fix the
 issue of headers being case sensitive. Fixes @carlzogh 's comment
 regarding breaking changes in setHeaders.
@msailes
Copy link
Collaborator

msailes commented Aug 10, 2022

Closing, replaced with #298

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.

3 participants