changed content type of api responses to application/json

pull/88/merge
Peter 'Pita' Martischka 2011-08-16 20:06:59 +01:00
parent d2c502e2be
commit 5da30a40bf
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ async.waterfall([
app.get('/api/1/:func', function(req, res)
{
res.header("Server", serverName);
res.header("Content-Type", "application/json");
apiLogger.info("REQUEST, " + req.params.func + ", " + JSON.stringify(req.query));