Add content-type header and JSON.stringify to JSON responder.
This commit is contained in:
parent
566dae354d
commit
522c83b1db
@ -184,7 +184,8 @@ app.get('/:loc/status', function(req, res) {
|
|||||||
if(err) {
|
if(err) {
|
||||||
return winston.error('error running query', err);
|
return winston.error('error running query', err);
|
||||||
}
|
}
|
||||||
res.send(result.rows[0].origjson);
|
res.setHeader('Content-Type', 'application/json');
|
||||||
|
res.send(JSON.stringify(result.rows[0].origjson));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user