Skip to content

Canonicalize headers when creating a HeaderMatcher.#50

Merged
declark1 merged 2 commits intoIBM:mainfrom
bIgBV:canonicalize-headers
Apr 23, 2025
Merged

Canonicalize headers when creating a HeaderMatcher.#50
declark1 merged 2 commits intoIBM:mainfrom
bIgBV:canonicalize-headers

Conversation

@bIgBV
Copy link
Contributor

@bIgBV bIgBV commented Apr 22, 2025

The current header matching behavior is case sensitive and requires clients to be aware of this behavior when setting up tests. This commit ensures that header names and values are canonicalized when a matcher is created inline with RC2616

Addresses #49

@bIgBV bIgBV force-pushed the canonicalize-headers branch from baa407a to a62c50b Compare April 22, 2025 16:59
@declark1
Copy link
Contributor

Thanks @bIgBV. Can you clear the clippy warnings and sign your commits to pass the DCO check?

@bIgBV bIgBV force-pushed the canonicalize-headers branch from 86e26fe to 3473873 Compare April 23, 2025 20:03
@bIgBV
Copy link
Contributor Author

bIgBV commented Apr 23, 2025

@declark1 latest commit should be good to go. I'm curious why the DCO check is still failing even though the commit messages have the signed-off-by footer.

@declark1
Copy link
Contributor

@declark1 latest commit should be good to go. I'm curious why the DCO check is still failing even though the commit messages have the signed-off-by footer.

@bIgBV hmm, it looks like an email address discrepancy; the check was expecting commit author email @microsoft.com but the sign-off is showing @gmail.com.

Bhargav Voleti added 2 commits April 23, 2025 13:33
The current header matching behavior is case sensitive and requires
clients to be aware of this behavior when setting up tests. This commit
ensures that header names and values are canonicalized when a matcher is
created inline with RC2616

Signed-off-by: Bhargav Voleti <bhargav.voleti93@gmail.com>
Signed-off-by: Bhargav Voleti <bvoleti@microsoft.com>
Signed-off-by: Bhargav Voleti <bhargav.voleti93@gmail.com>
Signed-off-by: Bhargav Voleti <bvoleti@microsoft.com>
@bIgBV bIgBV force-pushed the canonicalize-headers branch from 3473873 to eaa23d1 Compare April 23, 2025 20:34
@bIgBV
Copy link
Contributor Author

bIgBV commented Apr 23, 2025

Ah, fair enough. I updated the history to align the footer.

@declark1 declark1 self-requested a review April 23, 2025 21:14
Copy link
Contributor

@declark1 declark1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the fix!

@declark1 declark1 merged commit 025d724 into IBM:main Apr 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants