Update src/libpoketube/init/pages-api.js

This commit is contained in:
ashley 2025-04-30 16:08:06 +00:00
parent ac979c3bdc
commit e4da5d48d4

View File

@ -229,7 +229,7 @@ module.exports = function (app, config, renderTemplate) {
let f = await modules.fetch(url, {
method: req.method,
headers: headers, // Add headers to the fetch request
headers: headers,
});
f.body.pipe(res);
@ -321,7 +321,7 @@ const { useragent, ...configWithoutUA } = cnf;
const url = `https://raw.githubusercontent.com/ashley0143/poke/main/instances.json`;
let f = await fetch(url, {
headers: headers, // Add headers to the fetch request
headers: headers,
})
.then((res) => res.text())
.then((json) => JSON.parse(json));