-
Notifications
You must be signed in to change notification settings - Fork 239
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
Conversation
Has this been tested on the AWS platform? |
Yes, LB and API GW were tested, I removed websockets |
Thanks! @jeromevdl |
if (headers == null || headers.isEmpty()) { | ||
this.headers = null; | ||
return; | ||
} | ||
|
||
if (this.headers == null) { | ||
this.headers = new HttpHeaders<>(); | ||
} | ||
this.headers.putAll(headers); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
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.
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.
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.
Closing, replaced with #298 |
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.