-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Update golang.org/x/net #103176
Update golang.org/x/net #103176
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.
initial pass, vendor looks fine.
i'm not sure if kubernetes uses the affected API anywhere (maybe in the doc generation?)
if !ascii { | ||
// Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header | ||
// field names have to be ASCII characters (just as in HTTP/1.x). | ||
continue |
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.
this seems potentially notable.
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.
validWireHeaderFieldName below already skipped outputting strings which contained non-ascii characters ... this addition is catching things that were not ascii, but got transformed to ascii by strings.ToLower ... given they didn't work in http/1.x, and were being transformed to non-round-trippable lowercase headers, I'm not especially concerned about this
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.
I'm just not sure where all this is used, and it appears to be technically a breaking change, HTTP clients etc. seem notorious for doing / depending on out-of-spec stuff like this.
} | ||
return strings.ToLower(v) | ||
return asciiToLower(v) |
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.
also possibly notable
I think that non-ASCII characters should not appear in the header. /lgtm |
/retest Review the full test history for this PR. Silence the bot with an |
/remove-sig api-machinery |
/retest Review the full test history for this PR. Silence the bot with an |
Let me rebase this PR |
@BenTheElder I fix it |
/remove-sig instrumentation |
/hold cancel |
need LGTM... |
/lgtm |
/triage accepted |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Update golang.org/x/net to v0.0.0-20210520170846-37e1c6afe023
1 .hack/pin-dependency.sh golang.org/x/net v0.0.0-20210520170846-37e1c6afe023
2. hack/update-vendor.sh
3. hack/update-internal-modules.sh
Which issue(s) this PR fixes:
Fixes #103166
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: