mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
Merge pull request #44 from nkt/patch-1
Use native comparison instead of regexp
This commit is contained in:
commit
b0dcd03699
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user