1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: encode URI value when deleting tag

This commit is contained in:
Christopher Kolstad 2021-03-17 09:55:03 +01:00
parent d8aad549bb
commit 1dc81af7c3
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
The latest version of this document is always available in
[releases][releases-url].
# 3.14.1
- fix: uriencode tag.value when deleting a tag
# 3.14.0
- fix: should fetch projects once to make sure we know about projects

View File

@ -18,7 +18,7 @@ function create(tag) {
}
function deleteTag(tag) {
return fetch(`${URI}/${tag.type}/${tag.value}`, {
return fetch(`${URI}/${tag.type}/${encodeURIComponent(tag.value)}`, {
method: 'DELETE',
headers,
credentials: 'include',