From a99a730c0c7bd862f158bd8af3221e1779559936 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 5 Sep 2025 08:57:39 +0000 Subject: [PATCH] fix(tlsutil): support HTTP/2 on GUI/API connections (#10366) By not setting ALPN we were implicitly rejecting HTTP/2, completely unnecessarily. Signed-off-by: Jakob Borg --- lib/tlsutil/tlsutil.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tlsutil/tlsutil.go b/lib/tlsutil/tlsutil.go index e1b9b7e86..cbdd05b3b 100644 --- a/lib/tlsutil/tlsutil.go +++ b/lib/tlsutil/tlsutil.go @@ -83,6 +83,8 @@ func SecureDefaultWithTLS12() *tls.Config { // We've put some thought into this choice and would like it to // matter. PreferServerCipherSuites: true, + // We support HTTP/2 and HTTP/1.1 + NextProtos: []string{"h2", "http/1.1"}, ClientSessionCache: tls.NewLRUClientSessionCache(0), }