You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace deprecated h2c.NewHandler with http.Server.Protocols
golangci-lint flagged SA1019 against golang.org/x/net/http2/h2c, which
upstream marked deprecated in favor of the http.Server.Protocols field
introduced in Go 1.24.
- cmds/dutagent/dutagent.go, cmds/exp/dutserver/dutserver.go: drop the
h2c.NewHandler + http2.Server wrapper; configure http.Server with
Protocols = {HTTP1, UnencryptedHTTP2} for the same behavior.
Signed-off-by: Fabian Wienand <fabian.wienand@blindspot.software>
0 commit comments