Browse Source

Fixed query warn for express-mysql

Edward Bramanti 10 years ago
parent
commit
e11095a171
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/JavaScript/express/app.js

+ 1 - 0
frameworks/JavaScript/express/app.js

@@ -149,6 +149,7 @@ if (cluster.isMaster) {
       if (!req.query.queries) {
         results = results[0];
       }
+      res.setHeader("Content-Type", "application/json");
       res.send(results);
     });
   });