fix: encode URI for node name in case it contains special chars
This commit is contained in:
parent
c4150a4edf
commit
877291334e
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export async function requestDelayForProxy(
|
||||||
) {
|
) {
|
||||||
const { url, init } = getURLAndInit(apiConfig);
|
const { url, init } = getURLAndInit(apiConfig);
|
||||||
const qs = `timeout=5000&url=${latencyTestUrl}`;
|
const qs = `timeout=5000&url=${latencyTestUrl}`;
|
||||||
const fullURL = `${url}${endpoint}/${name}/delay?${qs}`;
|
const fullURL = `${url}${endpoint}/${encodeURIComponent(name)}/delay?${qs}`;
|
||||||
return await fetch(fullURL, init);
|
return await fetch(fullURL, init);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue