Browse Source

Update mysql funcs

HonorLee 7 years ago
parent
commit
0116cf0889
1 changed files with 2 additions and 8 deletions
  1. 2 8
      system/lib/core/static.js

+ 2 - 8
system/lib/core/static.js

@@ -20,15 +20,9 @@ var Static = {
                     res.end();
                     return false;            
                 }
-                if(ext.match(/json/)){
-                    res.writeHead(200, { "Content-Type": MIME.lookup(ext)+';charset=utf-8'});
-                    res.end(data,'utf-8');
-                }else{
-                    res.writeHead(200, { "Content-Type": MIME.lookup(ext)+';charset=utf-8','Content-Encoding':'gzip'});
-                    res.end(data,'utf-8');
-                }
+                res.writeHead(200, { "Content-Type": MIME.lookup(ext)+';charset=utf-8'});
+                res.end(data,'utf-8');
                  //console.log(query)   
-            }else if(ext.match(/json/)){
             }else{
                 try{
                     data = FILE.readFileSync(assetFile,'binary');