Skip to content

Commit

Permalink
Use header Cookie instead of Set-Cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx7xxxx committed Nov 9, 2023
1 parent 7a9a101 commit 848a8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filters/proxies/loadbalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 848a8bf

Please sign in to comment.