added utf8 to content type of api responses, thx @0ip
This commit is contained in:
parent
82dd4802d7
commit
b9c1b45a8b
|
@ -281,7 +281,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");
|
res.header("Content-Type", "application/json; charset=utf-8");
|
||||||
|
|
||||||
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