mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
feat: add User-Agent header to fetch request in handleWebsiteIcon function
This commit is contained in:
@@ -87,6 +87,7 @@ async function handleWebsiteIcon(host: string): Promise<Response> {
|
||||
const upstream = `https://favicon.im/${encodeURIComponent(normalizedHost)}`;
|
||||
try {
|
||||
const resp = await fetch(upstream, {
|
||||
headers: { 'User-Agent': 'NodeWarden/1.0' },
|
||||
redirect: 'follow',
|
||||
cf: {
|
||||
cacheEverything: true,
|
||||
|
||||
Reference in New Issue
Block a user