Browse Source

incorrectly checking for windows

Patrick Falls 12 years ago
parent
commit
da19bd2530
1 changed files with 2 additions and 2 deletions
  1. 2 2
      express/app.js

+ 2 - 2
express/app.js

@@ -84,7 +84,7 @@ if (cluster.isMaster) {
   });
 
   app.get('/mysql-orm', function(req, res) {
-    if (!windows) return res.send(501, 'Not supported on windows');
+    if (windows) return res.send(501, 'Not supported on windows');
     
     var queries = req.query.queries || 1
       , worlds  = []
@@ -105,7 +105,7 @@ if (cluster.isMaster) {
   });
 
   app.get('/fortune', function(req, res) {
-    if (!windows) return res.send(501, 'Not supported on windows');
+    if (windows) return res.send(501, 'Not supported on windows');
     
     Fortune.all(function (err, fortunes) {
       var newFortune = {id: 0, message: "Additional fortune added at request time."};