From 5958ec15d264df85adcd0f2604584401a5b04ddc Mon Sep 17 00:00:00 2001 From: Guillermo Arrieta Medina Date: Mon, 9 Mar 2026 17:16:12 -0600 Subject: [PATCH] =?UTF-8?q?hotfix:=20identificaci=C3=B3n=20de=20la=20aplic?= =?UTF-8?q?aci=C3=B3n=20para=20Open=20Library?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supabase/functions/buscar-bibliografia/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {