From 0d73095e8c43513b09decf8ac0f414b50c7d6c3d Mon Sep 17 00:00:00 2001 From: Amio Date: Thu, 11 Jul 2024 08:59:44 +0800 Subject: [PATCH] chore: add user agent header to outgoing requests --- libs/got.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/got.ts b/libs/got.ts index c5023a79..a21a2e66 100644 --- a/libs/got.ts +++ b/libs/got.ts @@ -6,5 +6,8 @@ export default got.extend({ }, retry: { limit: 0, + }, + headers: { + 'user-agent': 'Mozilla/5.0 (compatible; Badgen/1.0; +https://badgen.net)', } })