1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: encode tag value

This commit is contained in:
Fredrik Oseberg 2021-03-17 09:50:51 +01:00
parent 19aebbf774
commit dbba23d7a6

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',