diff options
author | Matt Holt <[email protected]> | 2023-08-09 10:34:28 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-09 12:34:28 -0400 |
commit | 6cdcc2a78208b1d30b37fb06780160fcad48aab4 (patch) | |
tree | cf98d5aa691ac12570e1b6dae1d1116b0650255a /modules/caddyhttp/server.go | |
parent | fbb0ecfa322aa7710a3448453fd3ae40f037b8d1 (diff) | |
download | caddy-6cdcc2a78208b1d30b37fb06780160fcad48aab4.tar.gz caddy-6cdcc2a78208b1d30b37fb06780160fcad48aab4.zip |
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 <[email protected]>
Diffstat (limited to 'modules/caddyhttp/server.go')
-rw-r--r-- | modules/caddyhttp/server.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index b31e6e529..daef7770e 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -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 |