From 74739bc1a4418da99fb79ee4e0a083c5195e17eb Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Thu, 7 Jul 2022 16:43:15 -0600 Subject: [PATCH] Update modules/caddyhttp/templates/tplcontext.go Co-authored-by: Francis Lavoie --- modules/caddyhttp/templates/tplcontext.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go index 27f8e76f..89ebab44 100644 --- a/modules/caddyhttp/templates/tplcontext.go +++ b/modules/caddyhttp/templates/tplcontext.go @@ -443,6 +443,7 @@ func (c TemplateContext) funcHumanize(formatType, data string) (string, error) { // It can only be used inside a handle_response route. // EXPERIMENTAL: This API is subject to change or removal. func (c TemplateContext) ProxyResponse() (proxyResponse, error) { + //nolint:bodyclose resp, err := reverseproxy.Response(c.Req) if err != nil { return proxyResponse{}, err