From f80b6b465fed7a2020488a564d2ca5efd9276633 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Wed, 15 Jul 2015 16:48:07 +0200 Subject: [PATCH] Send an X-UA-Compatible header for IE --- package.json | 2 +- server/server.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9f3343a..d7c72a3 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/server/server.js b/server/server.js index 57724e4..d6cae2e 100644 --- a/server/server.js +++ b/server/server.js @@ -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);