mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-15 13:52:09 +08:00
pass accept header
This commit is contained in:
@@ -18,6 +18,7 @@ export default async function cachedFetch(url, duration, ua) {
|
|||||||
if (ua) {
|
if (ua) {
|
||||||
options.headers = {
|
options.headers = {
|
||||||
"User-Agent": ua,
|
"User-Agent": ua,
|
||||||
|
Accept: "application/json",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const [, , data] = await httpProxy(url, options);
|
const [, , data] = await httpProxy(url, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user