This commit is contained in:
wwqgtxx 2026-06-26 12:19:17 -04:00 committed by GitHub
commit 7586464359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2026,7 +2026,7 @@ func (c *conn) serve(ctx context.Context) {
c.bufw = newBufioWriterSize(checkConnErrorWriter{c}, 4<<10)
protos := c.server.protocols()
if c.tlsState == nil && protos.UnencryptedHTTP2() {
if protos.UnencryptedHTTP2() {
if c.maybeServeUnencryptedHTTP2(ctx) {
return
}