falscher contenttype oder was
This commit is contained in:
parent
90fc615aca
commit
16f6fdaf8d
|
@ -243,7 +243,7 @@ function Websrv(tlib) {
|
||||||
}
|
}
|
||||||
else if(url[2] == "latest") {
|
else if(url[2] == "latest") {
|
||||||
lib.sql.query("select * from `f0ck`.`items` order by `stamp` desc limit 1", (err, rows) => {
|
lib.sql.query("select * from `f0ck`.`items` order by `stamp` desc limit 1", (err, rows) => {
|
||||||
res.writeHead(200, { 'Content-Type': 'application/json' });
|
res.writeHead(200, { 'Content-Type': 'text/html' });
|
||||||
res.end(JSON.stringify({latest: rows[0].stamp}), 'utf-8');
|
res.end(JSON.stringify({latest: rows[0].stamp}), 'utf-8');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user