From bc81971f704c47618aba0bec87de2081339dac9f Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 13 Jan 2017 23:24:52 +0100 Subject: [PATCH] wtf --- src/websrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websrv.js b/src/websrv.js index 36919ce..621450d 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -244,7 +244,7 @@ function Websrv(tlib) { else if(url[2] == "latest") { lib.sql.query("select * from `f0ck`.`items` order by `stamp` desc limit 1", (err, rows) => { res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(rows[0].stamp, 'utf-8'); + res.end(rows[0].stamp.toString(), 'utf-8'); //res.end(JSON.stringify({latest: rows[0].stamp}), 'utf-8'); }); }