Browse Source

Update mysql funcs

HonorLee 7 years ago
parent
commit
b43e2a31f8
2 changed files with 3 additions and 3 deletions
  1. 2 2
      system/lib/core/handler.js
  2. 1 1
      system/lib/core/router.js

+ 2 - 2
system/lib/core/handler.js

@@ -20,7 +20,7 @@ var Handler = {
     // },
     response:function(res,data){
         if(!res) return;
-        res.writeHead(200, {'Content-Type': 'text/json'});
+        res.writeHead(200, {'Content-Type': 'text/html'});
         res.write(data);
         res.end();
     },
@@ -33,4 +33,4 @@ var Handler = {
     }
 }
 
-module.exports=Handler;
+module.exports = Handler;

+ 1 - 1
system/lib/core/router.js

@@ -44,7 +44,7 @@ var Router ={
                 Router._error('Handler ['+handlerFile+'] no such method "'+method+'"',res);
             }
         }catch(e){
-            Router._error(e,Res);
+            Router._error(e,res);
         }
     },
     _error:function(log,res){