Skip to content

Commit

Permalink
update ua to chrome 121
Browse files Browse the repository at this point in the history
Signed-off-by: Yun Shan <[email protected]>
  • Loading branch information
Yun-Shan authored Apr 20, 2024
1 parent 6806669 commit 85b130f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 85b130f

Please sign in to comment.