mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-11-04 10:40:20 +00:00
feat: add User-Agent header to fetch request in handleWebsiteIcon function
This commit is contained in:
commit
c16f9881d3
1 file changed
+1
@@ -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