fix nil logger

This commit is contained in:
WeidiDeng 2025-09-09 10:20:26 +08:00 committed by Francis Lavoie
parent d7185fd002
commit 76b33c0a08

View file

@ -53,6 +53,7 @@ func (h *http2Listener) Accept() (net.Conn, error) {
// or else the listener wouldn't be created // or else the listener wouldn't be created
h2Conn := &http2Conn{ h2Conn := &http2Conn{
h2Expected: h.useH2, h2Expected: h.useH2,
logger: h.logger,
Conn: conn, Conn: conn,
} }
if isConnectionStater { if isConnectionStater {