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:
parent
62c314a950
commit
12afc3c88f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user