diff --git a/app.js b/app.js
index 5792f96..dde3e93 100644
--- a/app.js
+++ b/app.js
@@ -39,13 +39,15 @@ http.createServer(function(req, res){
if(fs.existsSync(filePath)){
res.write(fs.readFileSync(filePath));
} else {
- res.write("
小胡子哥告诉你:404了~
");
+ res.writeHead(200, {"Content-Type": "text/html; charset=utf-8"});
+ res.write("小胡子哥告诉你:404了~
", 'utf-8');
}
res.end();
} else {
- res.write("小胡子哥告诉你:404了~
");
+ res.writeHead(200, {"Content-Type": "text/html; charset=utf-8"});
+ res.write("小胡子哥告诉你:404了~
", 'utf-8');
res.end();
}
}).listen(PORT, function(){
console.log('Listen at http://0.0.0.0:' + PORT);
-});
\ No newline at end of file
+});
diff --git a/demo/index.html b/demo/index.html
index dbde546..f605ff8 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -1,5 +1,6 @@
+