mirror of
https://codeberg.org/ashley/poke
synced 2025-05-28 18:19:43 +00:00
Update src/libpoketube/init/pages-api.js
This commit is contained in:
parent
ac979c3bdc
commit
e4da5d48d4
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user