mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-29 15:15:51 +08:00
ci: Update to Go 1.21 (#5719)
* ci: Update to Go 1.21 * Bump quic-go to v0.37.4 * Check EnableFullDuplex err * Linter bug suppression See https://github.com/timakin/bodyclose/issues/52 --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
@ -291,7 +291,10 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if s.EnableFullDuplex {
|
||||
// TODO: Remove duplex_go12*.go abstraction once our
|
||||
// minimum Go version is 1.21 or later
|
||||
enableFullDuplex(w)
|
||||
err := enableFullDuplex(w)
|
||||
if err != nil {
|
||||
s.accessLogger.Warn("failed to enable full duplex", zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
||||
// encode the request for logging purposes before
|
||||
|
Reference in New Issue
Block a user