Skip to content

Commit 158058c

Browse files
committed
Fixed RTSP support in HTTP::Parser
1 parent ff33a8a commit 158058c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/http_parser.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,9 @@ bool HTTP::Parser::parse(std::string &HTTPbuffer, Util::DataCallback &cb){
708708
}
709709
return false;
710710
}else{
711+
if (protocol.substr(0, 4) == "RTSP" || method.substr(0,4) == "RTSP"){
712+
return true;
713+
}
711714
unsigned int toappend = HTTPbuffer.size();
712715
bool shouldAppend = true;
713716
if (bodyCallback){

0 commit comments

Comments
 (0)