1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:50:31 -07:00

net/http: fix typo in log message

Change-Id: I399c65b44706cf5407099e867de27b3acdaf4825
Reviewed-on: https://go-review.googlesource.com/c/go/+/574235
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Damien Neil 2024-03-25 13:03:37 -07:00 committed by Gopher Robot
parent f6b93a4c35
commit 340f73ce34

View File

@ -1926,7 +1926,7 @@ func (c *conn) serve(ctx context.Context) {
if re, ok := err.(tls.RecordHeaderError); ok && re.Conn != nil && tlsRecordHeaderLooksLikeHTTP(re.RecordHeader) {
io.WriteString(re.Conn, "HTTP/1.0 400 Bad Request\r\n\r\nClient sent an HTTP request to an HTTPS server.\n")
re.Conn.Close()
reason = "client sent an HTTP requset to an HTTPS server"
reason = "client sent an HTTP request to an HTTPS server"
} else {
reason = err.Error()
}