1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 10:14:39 -05:00

fix urls :p

This commit is contained in:
Ashley 2022-12-20 07:58:57 +00:00
parent fb88ff227b
commit e016ae062a

View file

@ -42,7 +42,7 @@ const proxy = async (req, res) => {
let url;
try {
url = new URL("https://" + req.originalUrl.slice(1));
url = new URL("https://" + req.originalUrl.slice(10));
} catch(e) {
console.log('==> Cannot parse URL: ' + e);
return res.status(400).send('Malformed URL');