URI encode querry on server.
This commit is contained in:
parent
bb4d603a88
commit
0a71d557c0
@ -19,5 +19,5 @@ export default async function handler(req, res) {
|
|||||||
return res.json([query, []]); // Responde with the same array format but with no suggestions.
|
return res.json([query, []]); // Responde with the same array format but with no suggestions.
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.send(await cachedFetch(`${provider.suggestionUrl}${query}`, 5));
|
return res.send(await cachedFetch(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user