Skip to content
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

#220 Fix case-sensitivity of HTTP headers in models #298

Conversation

parawanderer
Copy link

Issue #, if available: #220

Description of changes:

This solution builds upon @jeromevdl 's solution of PR 234 to fix the
issue of headers being case sensitive. Fixes @carlzogh 's comment
regarding breaking changes in setHeaders.

This adds some extra unit tests, and reorders some of the added unit test assertions of the original PR, too

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 Jan 4, 2022

Do you think that HttpHeadersUtil.mergeOrReplace() should be a function within the HttpHeaders class, instead of within it's own class.

Thoughts @carlzogh @andclt @jeromevdl

@parawanderer
Copy link
Author

Do you think that HttpHeadersUtil.mergeOrReplace() should be a function within the HttpHeaders class, instead of within it's own class.

Thoughts @carlzogh @andclt @jeromevdl

Personally I could agree to that too, since you can just as easily have it be package-private on a method level that way and that was the reason I thought of moving it to a package-private class to begin with

@msailes msailes added the events-v4 To be pulled into aws-lambda-java-event v4 label Jan 5, 2022
* Fix os compatibility test local builds on arm64 hosts

* Extract log fetching and clean up to separate scripts
@msailes
Copy link
Collaborator

msailes commented May 13, 2022

Hi @parawanderer,

Can this be updated at written as a PR against the V4 branch?

zsombor-balogh and others added 7 commits May 30, 2022 12:46
* optimize jar discovery

* remove lambda implementation

* return of no jars are found

* use static final annon class instead

* use static reference for consistency
)

Bumps [gson](https://github.com/google/gson) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](google/gson@gson-parent-2.8.5...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carl Zogheib <[email protected]>
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.10.0 to 2.12.6.1.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carl Zogheib <[email protected]>
Co-authored-by: Alexander Smirnov <[email protected]>
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.10.5.1 to 2.12.6.1.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carl Zogheib <[email protected]>
Co-authored-by: Alexander Smirnov <[email protected]>
@parawanderer
Copy link
Author

Hi @msailes

I've taken a look and I believe I merged it in with the "events-v4-serialization-v2" branch, changed things in line with previous suggestions in this thread and updated all relevant tests/usages.
Please feel free to check this again for any more issues.

@msailes msailes changed the base branch from master to events-v4-serialization-v2 August 10, 2022 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
events-v4 To be pulled into aws-lambda-java-event v4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants