changed content type of api responses to application/json
parent
d2c502e2be
commit
5da30a40bf
|
@ -279,6 +279,7 @@ async.waterfall([
|
||||||
app.get('/api/1/:func', function(req, res)
|
app.get('/api/1/:func', function(req, res)
|
||||||
{
|
{
|
||||||
res.header("Server", serverName);
|
res.header("Server", serverName);
|
||||||
|
res.header("Content-Type", "application/json");
|
||||||
|
|
||||||
apiLogger.info("REQUEST, " + req.params.func + ", " + JSON.stringify(req.query));
|
apiLogger.info("REQUEST, " + req.params.func + ", " + JSON.stringify(req.query));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue