hotfix: identificación de la aplicación para Open Library
This commit is contained in:
@@ -225,7 +225,12 @@ Deno.serve(async (req: Request): Promise<Response> => {
|
|||||||
|
|
||||||
const [googleResp, openLibraryResp] = await Promise.all([
|
const [googleResp, openLibraryResp] = await Promise.all([
|
||||||
fetch(googleUrl, { headers: { Accept: "application/json" } }),
|
fetch(googleUrl, { headers: { Accept: "application/json" } }),
|
||||||
fetch(openLibraryUrl, { headers: { Accept: "application/json" } }),
|
fetch(openLibraryUrl, {
|
||||||
|
headers: {
|
||||||
|
Accept: "application/json",
|
||||||
|
"User-Agent": "Acad-IA info.ingenieria.lci@gmail.com",
|
||||||
|
},
|
||||||
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (!googleResp.ok) {
|
if (!googleResp.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user