diff --git a/supabase/functions/buscar-bibliografia/index.ts b/supabase/functions/buscar-bibliografia/index.ts index f45b5a5..46fda32 100644 --- a/supabase/functions/buscar-bibliografia/index.ts +++ b/supabase/functions/buscar-bibliografia/index.ts @@ -225,7 +225,12 @@ Deno.serve(async (req: Request): Promise => { const [googleResp, openLibraryResp] = await Promise.all([ 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) {