-
Notifications
You must be signed in to change notification settings - Fork 239
#220 Fix case-sensitivity of HTTP headers in models #298
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
parawanderer
wants to merge
22
commits into
aws:events-v4-serialization-v2
from
parawanderer:fix_headers_insensitive
Closed
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
46ec9fa
fix issue #220, using treemap
jeromevdl 8e5bbb9
use case insensitive headers in all events
jeromevdl 28333c0
refactor + headers in websocket event
jeromevdl f3e80cc
corrections after real test
jeromevdl d997cfe
remove sysout
jeromevdl 72a0ecf
revert http headers
jeromevdl 6e1a2b0
Merge branch 'master' into fix_headers_insensitive
jeromevdl 4569e72
Merge branch 'master' into fix_headers_insensitive
parawanderer fdfaf16
#220 Fix header case sensitivity (updated #234)
parawanderer 06d1ebf
Fix os compatibility test local builds on arm64 hosts (#338)
zsombor-balogh 445f5c3
Add support for tumbling windows events serialization (#342)
zsombor-balogh 65169c1
Update readme (#347)
msailes bca2340
Optimize jar discovery (#350)
richarddd 2d378d4
Bump gson from 2.8.5 to 2.8.9 in /aws-lambda-java-serialization (#341)
dependabot[bot] 0979b62
Bump jackson-databind in /aws-lambda-java-serialization (#323)
dependabot[bot] bdd625a
Bump jackson-databind in /aws-lambda-java-events (#322)
dependabot[bot] e865e54
Update Curl to 7.84.0 (#354)
SukanyaHanumanthu 3677d0c
removed unnecessary usage of `public` on interface methods (#172)
jccarrillo 4ac4272
Merge branch 'master' into fix_headers_insensitive
parawanderer acc62d1
implement PR feedback changes
parawanderer 897c757
implement PR feedback changes
parawanderer f0de734
Merge branch "events-v4-serialization-v2"; update usages of HttpHeaders
parawanderer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
20 changes: 20 additions & 0 deletions
20
...va-events/src/main/java/com/amazonaws/services/lambda/runtime/events/HttpHeadersUtil.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.amazonaws.services.lambda.runtime.events; | ||
|
||
import com.amazonaws.services.lambda.runtime.events.models.HttpHeaders; | ||
|
||
import java.util.Map; | ||
|
||
final class HttpHeadersUtil { | ||
private HttpHeadersUtil() {} | ||
|
||
public static <T> HttpHeaders<T> mergeOrReplace(Map<String, T> from) { | ||
if (from == null) return null; | ||
if (from instanceof HttpHeaders) return (HttpHeaders<T>) from; | ||
|
||
HttpHeaders<T> out = new HttpHeaders<>(); | ||
if (from.isEmpty()) return out; | ||
|
||
out.putAll(from); | ||
return out; | ||
} | ||
} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.