Update modules/caddyhttp/templates/tplcontext.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
Matt Holt 2022-07-07 16:43:15 -06:00 committed by GitHub
parent 577f8ba811
commit 74739bc1a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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