diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2023-08-09 10:34:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 12:34:28 -0400 |
commit | 6cdcc2a78208b1d30b37fb06780160fcad48aab4 (patch) | |
tree | cf98d5aa691ac12570e1b6dae1d1116b0650255a /modules/caddyhttp/duplex_go121.go | |
parent | fbb0ecfa322aa7710a3448453fd3ae40f037b8d1 (diff) |
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>
Diffstat (limited to 'modules/caddyhttp/duplex_go121.go')
-rw-r--r-- | modules/caddyhttp/duplex_go121.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/caddyhttp/duplex_go121.go b/modules/caddyhttp/duplex_go121.go index 4f3851c..a17d3af 100644 --- a/modules/caddyhttp/duplex_go121.go +++ b/modules/caddyhttp/duplex_go121.go @@ -20,6 +20,7 @@ import ( "net/http" ) -func enableFullDuplex(w http.ResponseWriter) { - http.NewResponseController(w).EnableFullDuplex() +func enableFullDuplex(w http.ResponseWriter) error { + //nolint:bodyclose + return http.NewResponseController(w).EnableFullDuplex() } |