mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
removed string templating as not supported by node 0.10 - DK/MW
This commit is contained in:
parent
7d437b29e6
commit
27aaab3161
@ -51,7 +51,7 @@ describe('authorizer', function() {
|
||||
it('auth headers are supported', function (done){
|
||||
var socket = io.connect('http://localhost:9000', {
|
||||
'forceNew':true,
|
||||
'extraHeaders': {'Authorization': `Bearer ${this.token}`}
|
||||
'extraHeaders': {'Authorization': 'Bearer ' + this.token}
|
||||
});
|
||||
socket.on('connect', function(){
|
||||
socket.close();
|
||||
@ -83,7 +83,7 @@ describe('authorizer', function() {
|
||||
it('auth headers are supported', function (done){
|
||||
var socket = io.connect('http://localhost:9000', {
|
||||
'forceNew':true,
|
||||
'extraHeaders': {'Authorization': `Bearer ${this.token}`}
|
||||
'extraHeaders': {'Authorization': 'Bearer ' + this.token}
|
||||
});
|
||||
socket.on('connect', function(){
|
||||
socket.close();
|
||||
|
Loading…
Reference in New Issue
Block a user