diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-06-02 15:09:41 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-06-02 15:15:10 +0200 |
commit | bf43de1223ed25c831c9700b5bc541b55743588c (patch) | |
tree | a1f27eb34c91a0d4424c45b0068c2d25d39d51e8 /src | |
parent | e92a2006975e9e3ba9e8f985595364524a6706a9 (diff) |
Encode group names for x-property-replace header
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/services/appendContactToGroup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/appendContactToGroup.js b/src/services/appendContactToGroup.js index 6e520426..cfdd5567 100644 --- a/src/services/appendContactToGroup.js +++ b/src/services/appendContactToGroup.js @@ -34,7 +34,7 @@ const appendContactToGroup = async function(contact, groupName) { return axios.patch(contact.url, {}, { headers: { 'X-PROPERTY': 'CATEGORIES', - 'X-PROPERTY-REPLACE': groups.join(','), + 'X-PROPERTY-REPLACE': groups.map(groupName => encodeURIComponent(groupName)).join(','), }, }) } |