Update HttpSession.cpp
调整Cache-Control:no-cache的控制范围仅对ws-flv部分生效
This commit is contained in:
parent
0dc95cb85b
commit
3d2fd42f29
|
|
@ -149,8 +149,14 @@ bool HttpSession::checkWebSocket(){
|
|||
sendResponse(101, false, nullptr, headerOut, nullptr, true);
|
||||
};
|
||||
|
||||
auto res_cb_flv = [this, header = std::move(headerOut)]() mutable {
|
||||
_live_over_websocket = true;
|
||||
header.emplace("Cache-Control", "no-store");
|
||||
sendResponse(101, false, nullptr, header, nullptr, true);
|
||||
};
|
||||
|
||||
//判断是否为websocket-flv
|
||||
if (checkLiveStreamFlv(res_cb)) {
|
||||
if (checkLiveStreamFlv(res_cb_flv)) {
|
||||
//这里是websocket-flv直播请求
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue