-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Use case-insensitive header keys for --requestheader-group-headers
.
#49219
Use case-insensitive header keys for --requestheader-group-headers
.
#49219
Conversation
/assign @wojtek-t |
I don't have enough context to review it. /assign @liggitt |
@@ -145,7 +146,8 @@ func headerValue(h http.Header, headerNames []string) string { | |||
func allHeaderValues(h http.Header, headerNames []string) []string { | |||
ret := []string{} | |||
for _, headerName := range headerNames { | |||
values, ok := h[headerName] | |||
headerKey := textproto.CanonicalMIMEHeaderKey(headerName) |
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.
http.CanonicalHeaderKey()
instead?
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.
Done.
671c305
to
2ca78a3
Compare
/lgtm |
/approve no-issue |
Looks like tests are failing due to missing OAuth credentials in Jenkins. |
/retest |
@jmillikin-stripe: you can't request testing unless you are a kubernetes member. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can someone with ci-robot privileges poke it to re-run those tests? I'm 99% confident that those failures are flakes. |
|
This flag is documented as being case-insensitive, but the code was doing a case-sensitive map lookup.
2ca78a3
to
0acdc0c
Compare
Good catch, thanks! I didn't see that error among all the OAuth failures. PR updated. |
/lgtm |
@k8s-bot ok to test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmillikin-stripe, liggitt Associated issue requirement bypassed by: liggitt The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
/retest |
Automatic merge from submit-queue (batch tested with PRs 49081, 49318, 49219, 48989, 48486) |
This flag is documented as being case-insensitive, but the code was
doing a case-sensitive map lookup.
Release note: