I am using Express to run simple HTTP server (all real communication goes over Socket.IO). I used this code:
var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
server.listen(80);
app.use(express.static(__dirname));
Which runs server over current directory. My problem is that the encoding header is not sent. How can I set the default charset encoding? I'd like to avoid overriding some methods just because of that.