diff options
Diffstat (limited to 'modules/caddyhttp/reverseproxy/reverseproxy.go')
| -rw-r--r-- | modules/caddyhttp/reverseproxy/reverseproxy.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/caddyhttp/reverseproxy/reverseproxy.go b/modules/caddyhttp/reverseproxy/reverseproxy.go index 305a0b3..7fc61ae 100644 --- a/modules/caddyhttp/reverseproxy/reverseproxy.go +++ b/modules/caddyhttp/reverseproxy/reverseproxy.go @@ -368,7 +368,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyht  	var proxyErr error  	for {  		// choose an available upstream -		upstream := h.LoadBalancing.SelectionPolicy.Select(h.Upstreams, r) +		upstream := h.LoadBalancing.SelectionPolicy.Select(h.Upstreams, r, w)  		if upstream == nil {  			if proxyErr == nil {  				proxyErr = fmt.Errorf("no upstreams available") @@ -816,7 +816,7 @@ type LoadBalancing struct {  // Selector selects an available upstream from the pool.  type Selector interface { -	Select(UpstreamPool, *http.Request) *Upstream +	Select(UpstreamPool, *http.Request, http.ResponseWriter) *Upstream  }  // Hop-by-hop headers. These are removed when sent to the backend. | 
