net/smtp: parse EHLO extension keywords case-insensitively#80039
net/smtp: parse EHLO extension keywords case-insensitively#80039alitavanaei98-droid wants to merge 1 commit into
Conversation
RFC 5321 requires EHLO keywords to be recognized case-insensitively. Normalize extension names to upper case when parsing the EHLO response so Extension, StartTLS, and other callers detect capabilities advertised with mixed case (for example "starttls"). Fixes golang#78749 Change-Id: I72350651fe8bc8508c075e60bfa0eb884ac75de9
|
This PR (HEAD: 0588715) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/791600. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/791600. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/791600. |
RFC 5321 requires EHLO keywords to be recognized case-insensitively. Normalize extension names to upper case when parsing the EHLO response so Extension, StartTLS, and other callers detect capabilities advertised with mixed case (for example "starttls").
Fixes #78749
Change-Id: I72350651fe8bc8508c075e60bfa0eb884ac75de9
This PR will be imported into Gerrit with the title and first
comment (this text) used to generate the subject and body of
the Gerrit change.
Please ensure you adhere to every item in this list.
More info can be found at https://go.dev/wiki/CommitMessage
net/http: frob the quux before blarfing"This change modifies Go to ___________"
really needed (ASCII art, table, or long link)
Fixes #1234orUpdates #1234(the latter if this is not a complete fix) to this comment
golang/goyou can use theowner/repo#issue_numbersyntax:Fixes golang/vscode-go#1234Our Gerrit server & GitHub bots enforce CLA compliance instead.