Fix bug #3894 of rtsp over http (#3903)

This commit is contained in:
xiongguangjie 2024-09-17 09:44:22 +08:00 committed by GitHub
parent 2cc69d1be6
commit 8f03105baa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;