In OAuth requests, get req.path

Using req.route.path breaks OAuth whtn used with regex routes. Instead
of this we need to use req.path because the path is already expanded
This commit is contained in:
Luis Bosque 2013-05-29 17:35:16 +02:00
parent 62c314a950
commit 12afc3c88f

View File

@ -108,7 +108,7 @@ var oAuth = function(){
return;
}
var path = httpProto + '://' + host + req.route.path;
var path = httpProto + '://' + host + req.path;
that.splitParams(req.query);
// remove signature from passed_tokens