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:
parent
f6b93a4c35
commit
340f73ce34
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user