FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix issue #220, using treemap by jeromevdl · Pull Request #234 · aws/aws-lambda-java-libs · GitHub

fix issue #220, using treemap - #234

Closed
jeromevdl wants to merge 7 commits into
aws:masterfrom
jeromevdl:fix_headers_insensitive
Closed

fix issue #220, using treemap#234
jeromevdl wants to merge 7 commits into
aws:masterfrom
jeromevdl:fix_headers_insensitive

Conversation

Copy link
Copy Markdown
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 commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

Has this been tested on the AWS platform?

Copy link
Copy Markdown
Contributor Author

Has this been tested on the AWS platform?

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

msailes commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 commented Aug 10, 2022

Copy link
Copy Markdown
Contributor

Closing, replaced with #298

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL