Fix: Google search suggestions with accented characters (#2993)
This commit is contained in:
1 parent
67d99a5512
commit
1893c9b8da
2 files changed
+9
-3
No files matched your search
@@ -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.send(await cachedFetch(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5));
|
||||
return res.send(await cachedFetch(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5, "Mozilla/5.0"));
|
||||
}
|
||||
Reference in new issue
Block a user