mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Update modules/caddyhttp/templates/tplcontext.go
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
577f8ba811
commit
74739bc1a4
@ -443,6 +443,7 @@ func (c TemplateContext) funcHumanize(formatType, data string) (string, error) {
|
|||||||
// It can only be used inside a handle_response route.
|
// It can only be used inside a handle_response route.
|
||||||
// EXPERIMENTAL: This API is subject to change or removal.
|
// EXPERIMENTAL: This API is subject to change or removal.
|
||||||
func (c TemplateContext) ProxyResponse() (proxyResponse, error) {
|
func (c TemplateContext) ProxyResponse() (proxyResponse, error) {
|
||||||
|
//nolint:bodyclose
|
||||||
resp, err := reverseproxy.Response(c.Req)
|
resp, err := reverseproxy.Response(c.Req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return proxyResponse{}, err
|
return proxyResponse{}, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user