From 85b130fbd40e591860f42576f611392a1ecdf257 Mon Sep 17 00:00:00 2001 From: Yun Shan <14977331+Yun-Shan@users.noreply.github.com> Date: Sat, 20 Apr 2024 13:47:37 +0800 Subject: [PATCH] update ua to chrome 121 Signed-off-by: Yun Shan <14977331+Yun-Shan@users.noreply.github.com> --- src/request/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request/index.ts b/src/request/index.ts index 36e91a2..5529043 100644 --- a/src/request/index.ts +++ b/src/request/index.ts @@ -16,7 +16,7 @@ if (typeof globalThis === 'object' && Object.prototype.hasOwnProperty.call(globa } let defaultResponseTransformer = (response: Response) => response.text(); -let defaultUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'; +let defaultUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'; export class RequestError extends Error { constructor(message: string, readonly response?: Response, readonly cause?: Error) {