haproxytech / dataplaneapi

HAProxy Data Plane API
https://www.haproxy.com/documentation/dataplaneapi/
Apache License 2.0
328 stars 76 forks source link

Using semicolon in maps does not work with POST #335

Closed Maharacha closed 6 months ago

Maharacha commented 6 months ago

I have problem with using semicolon in maps when using Dataplane API. Using version 2.9.3.

curl --location --request POST '10.207.153.245:5555/v2/services/haproxy/runtime/maps_entries?map=test.map&force_sync=true' \
--header 'Authorization: Basic YWRtaW46YWRtaW5wd2Q=' \
--header 'Content-Type: application/json' \
--data '{
    "key": "foobar",
    "value": "foo;bar"
}'
{"key":"foobar","value":"foo;bar"}

content of the map file:

: send
: send
: lower
: lower
: toggle
: disconnect
[<command>] :
command, but
foobar foo
version :