mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 11:07:49 +01:00
fix urls :p
This commit is contained in:
parent
371e6ca54c
commit
814e894ba3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ const proxy = async (req, res) => {
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
url = new URL("https://" + req.originalUrl.slice(1));
|
url = new URL("https://" + req.originalUrl.slice(10));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log('==> Cannot parse URL: ' + e);
|
console.log('==> Cannot parse URL: ' + e);
|
||||||
return res.status(400).send('Malformed URL');
|
return res.status(400).send('Malformed URL');
|
||||||
|
|
Loading…
Reference in a new issue