From d6d9e9e8c83272fe6da410d295f8d8b633773198 Mon Sep 17 00:00:00 2001 From: ab14-tech <> Date: Fri, 24 Jan 2025 12:34:46 -0500 Subject: [PATCH] exported, but not serialized --- modules/caddyhttp/reverseproxy/healthchecks.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/caddyhttp/reverseproxy/healthchecks.go b/modules/caddyhttp/reverseproxy/healthchecks.go index 0f1edc25f..6d74f9c82 100644 --- a/modules/caddyhttp/reverseproxy/healthchecks.go +++ b/modules/caddyhttp/reverseproxy/healthchecks.go @@ -133,7 +133,7 @@ type ActiveHealthChecks struct { // body of a healthy backend. ExpectBody string `json:"expect_body,omitempty"` - transport http.RoundTripper `json:"-"`` + Transport http.RoundTripper `json:"-"`` uri *url.URL httpClient *http.Client bodyRegexp *regexp.Regexp @@ -187,14 +187,14 @@ func (a *ActiveHealthChecks) Provision(ctx caddy.Context, h *Handler) error { if err != nil { return fmt.Errorf("loading transport: %v", err) } - a.transport = mod.(http.RoundTripper) + a.Transport = mod.(http.RoundTripper) } else { - a.transport = h.Transport + a.Transport = h.Transport } a.httpClient = &http.Client{ Timeout: timeout, - Transport: a.transport, + Transport: a.Transport, CheckRedirect: func(req *http.Request, via []*http.Request) error { if !a.FollowRedirects { return http.ErrUseLastResponse