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