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

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

@@ -9,8 +9,6 @@ var Static = {
             return;  
             return;  
         }
         }
         if(ext.match(/png|jpg|jpeg|gif/)){
         if(ext.match(/png|jpg|jpeg|gif/)){
-            // res.writeHead(404, {'Content-Type': 'text/html'});
-            // res.end();
             IMAGE.load(URL.parse(assetFile,true).pathname,ext,req,res);
             IMAGE.load(URL.parse(assetFile,true).pathname,ext,req,res);
         }else if(FILE.existsSync(assetFile)){
         }else if(FILE.existsSync(assetFile)){
             var data;
             var data;