test: validate native TLS on Linux

This commit is contained in:
2026-09-22 01:14:21 +08:00
parent e6c82a01fe
commit 9c9c8ab59a
9 changed files with 1385 additions and 32 deletions

View File

@@ -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"}
}