sam
2014-10-11 16:18:44 UTC
1 - Causes error:
function serveStaticFile(res, path, contentType, responseCode){
if (!responseCode) reponseCode = 200;
fs.readFile(__dirname + path, function(err, data){
if (err){
2 - Doesn't cause error:
function serveStaticFile(res, path, contentType, responseCode){
if(!responseCode) responseCode = 200;
fs.readFile(__dirname + path, function(err, data){
if(err){