dw-3 opened a new issue #3359: URL: https://github.com/apache/apisix/issues/3359
curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/index.html", "plugins": { "traffic-split": { "rules": [ { "match": [ { "vars": [ ["http_h-x-strategy-token-cmnet","==","CompanyNetwork"] ], "vars": [ ["cookie_h-x-strategy-token-cmnet","==","CompanyNetwork"] ] } ], "weighted_upstreams": [ { "upstream": { "name": "upstream_A", "type": "roundrobin", "nodes": { "127.0.0.1:1981":10 } }, "weight": 3 }, { "weight": 2 } ] } ] } }, "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:1980": 1 } } }' etcd result: { "update_time":1611131384, "upstream":{ "type":"roundrobin", "hash_on":"vars", "nodes":{ "127.0.0.1:1980":1 }, "pass_host":"pass" }, "plugins":{ "traffic-split":{ "rules":[ { "match":[ { "vars":[ [ "cookie_h-x-strategy-token-cmnet", "==", "CompanyNetwork" ] ] } ], "weighted_upstreams":[ { "weight":3, "upstream":{ "nodes":{ "127.0.0.1:1981":10 }, "type":"roundrobin", "hash_on":"vars", "pass_host":"pass", "name":"upstream_A" } }, { "weight":2 } ] } ] } }, "create_time":1611130637, "priority":0, "id":"1", "uri":"/index.html", "status":1 } vars http 不见了 ---------------------------------------------------------------- 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: us...@infra.apache.org