-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make filtering allowed headers case-insensitive #10
Conversation
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.
May I suggest renaming the PR:
Make filtering allowed headers case-insensitive
?
And please update the changelog with this info (and squash commits as always please).
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.
@dragarth-7
I'm reviewing https://github.com/Knotx/knotx-commons/pull/8/files and now I wonder if there could be more tests for headers with wildcards here:
https://github.com/Knotx/knotx-commons/blob/master/src/test/java/io/knotx/commons/http/request/AllowedHeadersFilterTest.java#L33
?
E.g. Host-*
or Content-*
Done
I can extend test by more cases. Are you want to discuss about that somewhere ? How will we process it ? By new tickets/topic ? |
Depends what we decide on: Knotx/knotx-fragments#100 (comment) Good start could be creating an issue in the |
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 @dragarth-7
@Skejven You need also merge changes from: Knotx/knotx-commons#14 if you want this changes working. But i also must remark that in PR-14 from knotx-common we have discussion about that how wildcards/regex mechanizm should work. See also other related changes that I prepared as PR: |
Right, thanks my fingers were too quick with merging :) |
@dragarth-7 may I ask you to open a new Pull Request (I can't reopen unfortunately). Sorry for the trouble. |
Description
For a reason we can use:
I done refactor usage of AllowedHeadersFilter
Motivation and Context
#7 and PR-8
Screenshots (if appropriate)
Upgrade notes (if appropriate)
Types of changes
Checklist:
I hereby agree to the terms of the Knot.x Contributor License Agreement.