fix: use "Mozilla" instead of "Mozilla/5.0" as default user agent

This commit is contained in:
WebStreamr 2025-12-22 09:04:36 +00:00
parent 36a15f0091
commit ddf4f227b3
No known key found for this signature in database

View file

@ -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 && {