-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add case-instensitive GetHeader for HookRequest & HookResponse #3556
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
Add case-instensitive GetHeader for HookRequest & HookResponse #3556
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3556 +/- ##
=======================================
Coverage 91.23% 91.24%
=======================================
Files 183 183
Lines 16053 16063 +10
=======================================
+ Hits 14646 14656 +10
Misses 1231 1231
Partials 176 176 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
If you add one more test case to each of your tests that covers lines 57 and 78, respectively, then the linter will be happy. 😄
Oh you right! Completely forgot about negative cases) |
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.
Thank you, @sparshev!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
@stevehipwell - might you have time for a code review? Thank you!
LGTM! Tiny nit: wdyt to abstract the common functionality into a shared helper function aims to reduce code duplication like below?
|
Thank you, @atilsensalduz and @sparshev! |
Simple implementation for case-insensitive GetHeader. I thought about caching the keys, but it seems too complicated for now with additional not predictable memory consumption. Tests are included.
Fixes #3555