mÃh
This commit is contained in:
parent
788b8a3990
commit
e59651f93f
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user