From 848a8bf6e81d18a63e8b09ee2d23893d8ffe5b13 Mon Sep 17 00:00:00 2001 From: Yun Long Date: Thu, 9 Nov 2023 11:30:53 +0800 Subject: [PATCH] Use header Cookie instead of Set-Cookie --- pkg/filters/proxies/loadbalance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filters/proxies/loadbalance.go b/pkg/filters/proxies/loadbalance.go index 5a45fcb6c2..6556945f20 100644 --- a/pkg/filters/proxies/loadbalance.go +++ b/pkg/filters/proxies/loadbalance.go @@ -112,7 +112,7 @@ func (glb *GeneralLoadBalancer) Init( case LoadBalancePolicyHeaderHash: lbp = &HeaderHashLoadBalancePolicy{spec: glb.spec} case LoadBalancePolicyCookieHash: - lbp = &HeaderHashLoadBalancePolicy{spec: &LoadBalanceSpec{HeaderHashKey: "Set-Cookie"}} + lbp = &HeaderHashLoadBalancePolicy{spec: &LoadBalanceSpec{HeaderHashKey: "Cookie"}} default: logger.Errorf("unsupported load balancing policy: %s", glb.spec.Policy) lbp = &RoundRobinLoadBalancePolicy{}