From 12346f77a4c4ce2f545132802e0df580a1090b84 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 30 Nov 2019 11:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebHook.cpp | 2 +- src/Http/WebSocketSession.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/WebHook.cpp b/server/WebHook.cpp index 85c63d84..e251f24b 100644 --- a/server/WebHook.cpp +++ b/server/WebHook.cpp @@ -427,7 +427,7 @@ void installWebHook(){ /** * kBroadcastHttpAccess事件触发机制 * 1、根据http请求头查找cookie,找到进入步骤3 - * 2、根据http url参数(如果没有根据ip+端口号)查找cookie,如果还是未找到cookie则进入步骤5 + * 2、根据http url参数查找cookie,如果还是未找到cookie则进入步骤5 * 3、cookie标记是否有权限访问文件,如果有权限,直接返回文件 * 4、cookie中记录的url参数是否跟本次url参数一致,如果一致直接返回客户端错误码 * 5、触发kBroadcastHttpAccess事件 diff --git a/src/Http/WebSocketSession.h b/src/Http/WebSocketSession.h index fe4d443a..682a2559 100644 --- a/src/Http/WebSocketSession.h +++ b/src/Http/WebSocketSession.h @@ -28,6 +28,7 @@ #define ZLMEDIAKIT_WEBSOCKETSESSION_H #include "HttpSession.h" +#include "Network/TcpServer.h" /** * 通过该模板类可以透明化WebSocket协议,