Skip to content

Commit

Permalink
Fixed connect middleware for 0.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 2, 2011
1 parent 4544c86 commit b96a024
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/middleware.js
Expand Up @@ -14,7 +14,15 @@ var stylus = require('./stylus')
, url = require('url')
, basename = require('path').basename
, join = require('path').join
, ENOENT = process.ENOENT;
, ENOENT;

// COMPAT:

try {
ENOENT = require('constants').ENOENT;
} catch (err) {
ENOENT = process.ENOENT;
}

/**
* Return Connect middleware with the given `options`.
Expand Down

0 comments on commit b96a024

Please sign in to comment.