Skip to content

Commit 82e8a52

Browse files
committed
Pass sockets.cookie to engine.io if it's false
1 parent db7aad2 commit 82e8a52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/initialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module.exports = function ToInitialize(app) {
134134
if (app.config.sockets.allowUpgrades) {
135135
opts.allowUpgrades = app.config.sockets.allowUpgrades;
136136
}
137-
if (app.config.sockets.cookie) {
137+
if (typeof app.config.sockets.cookie !== 'undefined') {
138138
opts.cookie = app.config.sockets.cookie;
139139
}
140140
if (app.config.sockets.onlyAllowOrigins) {

0 commit comments

Comments
 (0)