1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-15 01:16:22 +02:00

Merge pull request #257 from Unleash/fix/encode-tag-values

fix: encode tag value
This commit is contained in:
Christopher Kolstad 2021-03-17 09:57:34 +01:00 committed by GitHub
commit d8aad549bb

View File

@ -14,7 +14,7 @@ function tagFeature(featureToggle, tag) {
} }
function untagFeature(featureToggle, tag) { function untagFeature(featureToggle, tag) {
return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${tag.value}`, { return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${encodeURIComponent(tag.value)}`, {
method: 'DELETE', method: 'DELETE',
headers, headers,
credentials: 'include', credentials: 'include',