mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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
 | 
			
		||||
[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
 | 
			
		||||
 | 
			
		||||
@ -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',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user