Revert "Set user agent in cached-fetch request."
This reverts commit 891610ea7f.
This commit is contained in:
parent
fe1829020c
commit
b547e22705
@ -12,11 +12,7 @@ export default async function cachedFetch(url, duration) {
|
||||
return cached;
|
||||
}
|
||||
|
||||
const data = await fetch(url, {
|
||||
headers: {
|
||||
"User-Agent": "Mozilla/5.0",
|
||||
},
|
||||
}).then((res) => res.json());
|
||||
const data = await fetch(url).then((res) => res.json());
|
||||
cache.put(url, data, duration * 1000 * 60);
|
||||
return data;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user