Merge pull request #44 from nkt/patch-1

Use native comparison instead of regexp
This commit is contained in:
José F. Romaniello 2015-05-17 22:02:41 -03:00
commit b0dcd03699

View File

@ -73,7 +73,7 @@ function authorize(options, onConnection) {
var scheme = parts[0],
credentials = parts[1];
if (/^Bearer$/i.test(scheme)) {
if (scheme === 'Bearer') {
token = credentials;
}
} else {