Permalink
Browse files

Try removing bodyDecoder from chain and putting directly into single …

…method inside RPX
  • Loading branch information...
1 parent 2317980 commit 788fab66a3eb763425133179a6a032d46380212e @xrd committed Jan 13, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/connect-rpx.js
View
@@ -43,6 +43,12 @@ function isAuthenticated(req) {
}
function getCredentials(req,res,next) {
+ sys.puts( "About to decode body" );
+ Connect.bodyDecoder()( req, res, function() { afterBodyParse( req, res, next ) } );
+}
+
+function afterBodyParse( req, res, next ) {
+ sys.puts( "Decoded body" );
var token = req.body.token;
postWithCredentials( token, req, res, next );
}

0 comments on commit 788fab6

Please sign in to comment.