فهرست منبع

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