mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
Update modules/caddyhttp/templates/tplcontext.go
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
577f8ba811
commit
74739bc1a4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue