浏览代码

Fixed issue where connecting to socket.io without cookies didn't work

Kristian Vos 4 年之前
父节点
当前提交
f528a5b4a3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      backend/logic/io.js

+ 2 - 1
backend/logic/io.js

@@ -422,7 +422,8 @@ class _IOModule extends CoreClass {
 			return async.waterfall(
 				[
 					next => {
-						UtilsModule.runJob(
+						if (!socket.request.headers.cookie) return next("No cookie exists yet.");
+						return UtilsModule.runJob(
 							"PARSE_COOKIES",
 							{
 								cookieString: socket.request.headers.cookie