mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 10:12:11 +03:00
fix(search): guard params.token undefined in serper headers (typecheck base-red)
This commit is contained in:
@@ -304,7 +304,7 @@ function buildSerperRequest(
|
||||
url: `${config.baseUrl}${endpoint}`,
|
||||
init: {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json", "X-API-Key": params.token },
|
||||
headers: { "Content-Type": "application/json", "X-API-Key": params.token ?? "" },
|
||||
body: JSON.stringify(body),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user