Added some extra support to the url normalisation (ensure that when no path given the normalised url has a trailing slash)
This commit is contained in:
@ -54,6 +54,9 @@ exports.OAuth.prototype._normalizeUrl= function(url) {
|
||||
port= ":" + parsedUrl.port;
|
||||
}
|
||||
}
|
||||
|
||||
if( !parsedUrl.pathname || parsedUrl.pathname == "" ) parsedUrl.pathname ="/";
|
||||
|
||||
return parsedUrl.protocol + "//" + parsedUrl.hostname + port + parsedUrl.pathname;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user