From 8f03105baae7489874820ba2f527913707ed6d75 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Tue, 17 Sep 2024 09:44:22 +0800 Subject: [PATCH] Fix bug #3894 of rtsp over http (#3903) --- src/Rtsp/RtspSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 46e62fe2..2cbaf217 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -128,7 +128,7 @@ void RtspSession::onRecv(const Buffer::Ptr &buf) { void RtspSession::onWholeRtspPacket(Parser &parser) { string method = parser.method(); //提取出请求命令字 _cseq = atoi(parser["CSeq"].data()); - if (_content_base.empty() && method != "GET") { + if (_content_base.empty() && method != "GET" && method != "POST" ) { RtspUrl rtsp; rtsp.parse(parser.url()); _content_base = rtsp._url;