mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
typo fixes in comments
This commit is contained in:
@@ -500,7 +500,7 @@ type connTLSer interface {
|
||||
// tls.Conn is an encrypted connection (aka SSL, HTTPS).
|
||||
func (ctx *RequestCtx) IsTLS() bool {
|
||||
// cast to (connTLSer) instead of (*tls.Conn), since it catches
|
||||
// cases with overriden tls.Conn such as:
|
||||
// cases with overridden tls.Conn such as:
|
||||
//
|
||||
// type customConn struct {
|
||||
// *tls.Conn
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ func TestRequestCtxIsTLS(t *testing.T) {
|
||||
t.Fatalf("IsTLS must return false")
|
||||
}
|
||||
|
||||
// overriden tls.Conn
|
||||
// overridden tls.Conn
|
||||
ctx.c = &struct {
|
||||
*tls.Conn
|
||||
fooBar bool
|
||||
|
||||
Reference in New Issue
Block a user