server: Populate Request.Host field

This commit is contained in:
Adnan Maolood
2021-02-20 18:12:51 -05:00
parent fadb2aed97
commit 15f3e764c5
2 changed files with 4 additions and 1 deletions

View File

@@ -291,6 +291,7 @@ func (srv *Server) respond(conn net.Conn) {
if tlsConn, ok := conn.(*tls.Conn); ok {
state := tlsConn.ConnectionState()
req.TLS = &state
req.Host = state.ServerName
}
// Store remote address