fix: use "Mozilla" instead of "Mozilla/5.0" as default user agent
This commit is contained in:
parent
36a15f0091
commit
ddf4f227b3
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ export class Fetcher {
|
|||
'Accept-Language': 'en',
|
||||
...(url.username && { Authorization: 'Basic ' + Buffer.from(`${url.username}:${url.password}`).toString('base64') }),
|
||||
'Priority': 'u=0',
|
||||
'User-Agent': this.hostUserAgentMap.get(url.host) ?? 'Mozilla/5.0',
|
||||
'User-Agent': this.hostUserAgentMap.get(url.host) ?? 'Mozilla',
|
||||
...(hostUserAgent && { 'User-Agent': hostUserAgent }),
|
||||
...(cookieString && { Cookie: cookieString }),
|
||||
...(ctx.ip && {
|
||||
|
|
|
|||
Loading…
Reference in a new issue