1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +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) {
return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${tag.value}`, {
return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${encodeURIComponent(tag.value)}`, {
method: 'DELETE',
headers,
credentials: 'include',