chore: adapt default user agent slightly

This commit is contained in:
WebStreamr 2025-11-30 07:29:27 +00:00
parent afbc16a3ec
commit 1dd9d324e6
No known key found for this signature in database

View file

@ -157,7 +157,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',
'User-Agent': this.hostUserAgentMap.get(url.host) ?? 'Mozilla/5.0',
...(hostUserAgent && { 'User-Agent': hostUserAgent }),
...(cookieString && { Cookie: cookieString }),
...(ctx.ip && {