client/api: encode spaces (and others) in URLs
This commit is contained in:
parent
1a75c61f65
commit
a6d6aa2f4d
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ class Api extends events.EventTarget {
|
|||
}
|
||||
|
||||
_getFullUrl(url) {
|
||||
return (config.apiUrl + '/' + url).replace(/([^:])\/+/g, '$1/');
|
||||
return (config.apiUrl + '/' + encodeURI(url))
|
||||
.replace(/([^:])\/+/g, '$1/');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue