dw-3 opened a new issue #3306:
URL: https://github.com/apache/apisix/issues/3306
traffic-split 设置如下:
{
"disable": false,
"rules": [
{
"match": [
{
"vars": [
[
"http_h-x-strategy-token-cmnet",
"==",
"CompanyNetwork"
]
]
}
],
"weighted_upstreams": [
{
"upstream": {
"hash_on": "vars",
"name": "upstream_A",
"nodes": {
"10.0.15.97:80": 10
},
"pass_host": "pass",
"type": "roundrobin"
},
"weight": 1
}
]
}
]
}
apisix 2.2 etcd3.4.0
经测试 如果vars中含有- 横线,会导致校验header失败,请解决
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]