Permalink
Browse files

Fix mime type for server

  • Loading branch information...
1 parent e39cf51 commit 3e59f61e3a6d4d48aeafc31b611eb3c35e9bbbe1 @carhartl committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -15,7 +15,7 @@ http.createServer(function(request, response) {
return;
}
- response.writeHead(200);
+ response.writeHead(200, filename.match(/\.js$/) ? { 'Content-Type': 'text/javascript' } : {});
response.write(file, 'utf-8');
response.end();
});

0 comments on commit 3e59f61

Please sign in to comment.