Skip to content

Commit

Permalink
fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 11, 2013
1 parent 7b0116a commit 2c71975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web.js
Expand Up @@ -5,9 +5,9 @@ var app = express.createServer(express.logger());

app.get('/', function(request, response) {

var buf = fs.readFileSync("index.html");
var buf = fs.readFileSync("index.html", "utf-8");

response.send(buf);
response.send(buf.toString("utf-8", 0, buf.length));

// response.send('Hello World 3!');
});
Expand Down

0 comments on commit 2c71975

Please sign in to comment.