chore: Update quic-go to v0.41.0, bump Go minimum to 1.21 (#6043)

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
Marten Seemann
2024-01-25 10:58:19 -08:00
committed by GitHub
parent 2fe69a828f
commit 697cc593a1
11 changed files with 56 additions and 85 deletions

View File

@ -302,9 +302,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// enable full-duplex for HTTP/1, ensuring the entire
// request body gets consumed before writing the response
if s.EnableFullDuplex {
// TODO: Remove duplex_go12*.go abstraction once our
// minimum Go version is 1.21 or later
err := enableFullDuplex(w)
//nolint:bodyclose
err := http.NewResponseController(w).EnableFullDuplex()
if err != nil {
s.accessLogger.Warn("failed to enable full duplex", zap.Error(err))
}