Send an X-UA-Compatible header for IE

This commit is contained in:
Ophir LOJKINE 2015-07-15 16:48:07 +02:00
parent 5da6aefe65
commit f80b6b465f
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@
"collaborative",
"whiteboard"
],
"version": "1.0.0-13",
"version": "1.0.0-14",
"dependencies": {
"node-static": "0.7.x",
"socket.io": "0.9.x"

View file

@ -24,7 +24,10 @@ var PORT = 8080;
app.listen(PORT);
console.log("Server listening on "+PORT);
var fileserver = new nodestatic.Server(WEBROOT);
var fileserver = new nodestatic.Server(WEBROOT,
{
"headers" : {"X-UA-Compatible": "IE=Edge"}
});
function serveError(request, response, err) {
console.warn("Error serving '"+request.url+"' : "+err.status+" "+err.message);