request: Fix documentation for TLS

This commit is contained in:
Adnan Maolood 2021-02-23 17:30:46 -05:00
parent c688defefd
commit 311233a012

View File

@ -102,7 +102,7 @@ func (r *Request) Conn() net.Conn {
}
// TLS returns information about the TLS connection on which the
// response was received.
// request was received.
func (r *Request) TLS() *tls.ConnectionState {
if tlsConn, ok := r.conn.(*tls.Conn); ok {
state := tlsConn.ConnectionState()