From 2b86082f3db862f5d2931c903869dfddcecd0f0e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 31 May 2019 10:16:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DFFmpeg=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=92=AD=E6=94=BErtsp=20over=20http=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 9c603cc1..f1b96ac1 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -839,8 +839,7 @@ void RtspSession::handleReq_Teardown(const Parser &parser) { void RtspSession::handleReq_Get(const Parser &parser) { _http_x_sessioncookie = parser["x-sessioncookie"]; sendRtspResponse("200 OK", - {"Connection","Close", - "Cache-Control","no-store", + {"Cache-Control","no-store", "Pragma","no-store", "Content-Type","application/x-rtsp-tunnelled", },"","HTTP/1.0"); @@ -886,6 +885,12 @@ void RtspSession::handleReq_Post(const Parser &parser) { //http poster后面的粘包 _onRecv(std::make_shared(parser.Content())); } + + sendRtspResponse("200 OK", + {"Cache-Control","no-store", + "Pragma","no-store", + "Content-Type","application/x-rtsp-tunnelled", + },"","HTTP/1.0"); } void RtspSession::handleReq_SET_PARAMETER(const Parser &parser) {