Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/distracteddev/passport in…
Browse files Browse the repository at this point in the history
…to flatiron
  • Loading branch information
jaredhanson committed May 29, 2012
2 parents 945104d + 972b007 commit 50afae9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/passport/http/request.js
@@ -1,9 +1,18 @@
/**
* Module dependencies.
*/
var http = require('http')
, req = http.IncomingMessage.prototype;


// If flatiron/union is being used, then bind the following
// functions to the RoutingStream Prototype
try {
var union = require('union')
, req = union.RoutingStream.prototype;
}
// Otherwise, bind to the native http.req prototype
catch (ex) {
var http = require('http')
, req = http.IncomingMessage.prototype;
}

/**
* Intiate a login session for `user`.
Expand Down

0 comments on commit 50afae9

Please sign in to comment.