From af57691bc83e31d9f2679c3bf33a79d9248880cf Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 2 Jun 2023 21:43:24 +0800 Subject: [PATCH] =?UTF-8?q?c++14=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BAc++11=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 42c8cb1d..b443dfec 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -148,10 +148,10 @@ bool HttpSession::checkWebSocket(){ sendResponse(101, false, nullptr, headerOut, nullptr, true); }; - auto res_cb_flv = [this, header = std::move(headerOut)]() mutable { + auto res_cb_flv = [this, headerOut]() mutable { _live_over_websocket = true; - header.emplace("Cache-Control", "no-store"); - sendResponse(101, false, nullptr, header, nullptr, true); + headerOut.emplace("Cache-Control", "no-store"); + sendResponse(101, false, nullptr, headerOut, nullptr, true); }; //判断是否为websocket-flv