diff --git a/src/main.js b/src/main.js index 16fb51e..a070319 100644 --- a/src/main.js +++ b/src/main.js @@ -277,7 +277,7 @@ http.createServer((req, res) => { else if(filePath == "./random") { sql.query("select `id` from `f0ck`.`items` order by rand() limit 1", null, (err, rows, fields) => { res.writeHead(301, { - Location: req.headers.host + '/' + rows[0][0].id + Location: req.headers.host + '/' + rows[0].id }); res.end(); });