test: validate native TLS on Linux
This commit is contained in:
@@ -614,6 +614,10 @@ func readRequest(reader *bufio.Reader, conn net.Conn, maxHeaderBytes int, maxBod
|
||||
RemoteAddr: conn.RemoteAddr().String(),
|
||||
Trailer: trailer,
|
||||
}
|
||||
if tlsConn, ok := conn.(*tls.Conn); ok {
|
||||
state := tlsConn.ConnectionState()
|
||||
request.TLS = &state
|
||||
}
|
||||
if chunked {
|
||||
request.TransferEncoding = []string{"chunked"}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user