Browse Source

fix global leak

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
5a21138e37
  1. 2
      src/node.js

2
src/node.js

@ -165,7 +165,7 @@
// check if the file exists and is not a directory
var tryFile = function(requestPath) {
try {
stats = fs.statSync(requestPath);
var stats = fs.statSync(requestPath);
if (stats && !stats.isDirectory()) {
return requestPath;
}

Loading…
Cancel
Save