Encode and decode labels as URI components

This commit is contained in:
John Furrow
2016-07-04 15:07:43 -07:00
parent c265546213
commit 446c7888d0
2 changed files with 4 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ class ClientRequest {
let methodName = 'd.custom1.set';
let tags = options.tags.reduce((memo, currentTag) => {
let tag = currentTag.trim();
let tag = encodeURIComponent(currentTag.trim());
if (tag !== '' && memo.indexOf(tag) === -1) {
memo.push(tag);