mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
add comments about either h1 or h2 must be used in the listener
This commit is contained in:
parent
ff4aae6098
commit
337fc17423
@ -52,6 +52,8 @@ func (h *http2Listener) Accept() (net.Conn, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// impossible both are false, either useH1 or useH2 must be true,
|
||||
// or else the listener wouldn't be created
|
||||
return &http2Conn{
|
||||
h2Expected: h.useH2,
|
||||
Conn: conn,
|
||||
|
Loading…
x
Reference in New Issue
Block a user