mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
Merge pull request #157 from ProductOfAmerica/master
Fixed problem with not being able to execute. ALL tests are now running.
This commit is contained in:
commit
4482bdd1c1
@ -137,7 +137,7 @@ function authorize(options, onConnection) {
|
|||||||
|
|
||||||
return function(socket, accept){
|
return function(socket, accept){
|
||||||
var token, error;
|
var token, error;
|
||||||
var handshake = data.handshake;
|
var handshake = socket.handshake;
|
||||||
var req = socket.request || socket;
|
var req = socket.request || socket;
|
||||||
var authorization_header = (req.headers || {}).authorization;
|
var authorization_header = (req.headers || {}).authorization;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user