From e59651f93f628deb5e8ec2059360d70154f67c7a Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 16 Aug 2016 20:28:44 +0200 Subject: [PATCH] =?UTF-8?q?m=C3=83h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });