summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/duplex_go121.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/duplex_go121.go')
-rw-r--r--modules/caddyhttp/duplex_go121.go5
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()
}