Permalink
Browse files

Lint test-server module.

  • Loading branch information...
1 parent e43a530 commit 4d778eb9fdb48347ca535d1640d0c0c2c23b0c4a @reid reid committed Mar 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/hub/test-server.js
View
@@ -37,18 +37,20 @@ TestServer.prototype.serve = function (server, filename, buffer) {
};
// Cache for 4 minutes.
- headers["Expires"] = (new Date(now.getTime() + 240000)).toUTCString();
+ headers.Expires = (new Date(now.getTime() + 240000)).toUTCString();
headers["Content-Type"] = mime.contentTypes[path.extname(filename).slice(1)]
|| "application/octet-stream";
switch (headers["Content-Type"]) {
case "text/html":
injectScript = true;
+ break;
case "application/javascript":
case "application/xml":
case "text/css":
case "text/plain":
+ injectScript = true;
headers["Content-Type"] += "; charset=utf-8";
break;
}

0 comments on commit 4d778eb

Please sign in to comment.