From f8c40cc49cdcd27231180ad18605497cf08aaca1 Mon Sep 17 00:00:00 2001 From: Daniel Gafitescu Date: Tue, 9 Sep 2025 10:18:36 +0300 Subject: [PATCH] - when Bolt run on wrangler there are not default User-Agent headers when request to Github are made. --- app/routes/api.system.git-info.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/routes/api.system.git-info.ts b/app/routes/api.system.git-info.ts index 84ef260cb5..bffe20b37a 100644 --- a/app/routes/api.system.git-info.ts +++ b/app/routes/api.system.git-info.ts @@ -120,6 +120,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Bearer ${token}`, + 'User-Agent': 'BoltAi/1.0', }, }); @@ -146,6 +147,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Bearer ${token}`, + 'User-Agent': 'BoltAi/1.0', }, }); @@ -161,6 +163,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Bearer ${token}`, + 'User-Agent': 'BoltAi/1.0', }, }); @@ -189,6 +192,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio * headers: { * Accept: 'application/vnd.github.v3+json', * Authorization: `Bearer ${token}`, + * 'User-Agent': 'BoltAi/1.0', * }, * }); * @@ -229,6 +233,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Bearer ${token}`, + 'User-Agent': 'BoltAi/1.0', }, }); @@ -275,6 +280,7 @@ export const loader: LoaderFunction = async ({ request, context }: LoaderFunctio headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Bearer ${token}`, + 'User-Agent': 'BoltAi/1.0', }, });