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:
parent
d8aad549bb
commit
1dc81af7c3
@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
The latest version of this document is always available in
|
The latest version of this document is always available in
|
||||||
[releases][releases-url].
|
[releases][releases-url].
|
||||||
|
# 3.14.1
|
||||||
|
- fix: uriencode tag.value when deleting a tag
|
||||||
|
|
||||||
# 3.14.0
|
# 3.14.0
|
||||||
- fix: should fetch projects once to make sure we know about projects
|
- fix: should fetch projects once to make sure we know about projects
|
||||||
|
@ -18,7 +18,7 @@ function create(tag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteTag(tag) {
|
function deleteTag(tag) {
|
||||||
return fetch(`${URI}/${tag.type}/${tag.value}`, {
|
return fetch(`${URI}/${tag.type}/${encodeURIComponent(tag.value)}`, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers,
|
headers,
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
|
Loading…
Reference in New Issue
Block a user