From 384afb6508ef72809bcebf85b29d8aa8eff11f7f Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 9 Jan 2020 14:46:32 +0100 Subject: [PATCH] RTSP allow lowercase Content-[Tt]ype, fixed Soliton Systems RTSP server implementation --- src/input/input_rtsp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/input/input_rtsp.cpp b/src/input/input_rtsp.cpp index 9b63c2ef..c0b338bb 100755 --- a/src/input/input_rtsp.cpp +++ b/src/input/input_rtsp.cpp @@ -155,7 +155,7 @@ namespace Mist{ transportSet = false; extraHeaders.clear(); extraHeaders["Transport"] = it->second.generateTransport(it->first, url.host, TCPmode); - sendCommand("SETUP", url.link(it->second.control).getUrl(), "", &extraHeaders); + sendCommand("SETUP", HTTP::URL(url.getUrl()+"/").link(it->second.control).getUrl(), "", &extraHeaders); if (!tcpCon || !transportSet){ FAIL_MSG("Could not setup track %s!", myMeta.tracks[it->first].getIdentifier().c_str()); tcpCon.close(); @@ -234,8 +234,9 @@ namespace Mist{ session.erase(session.find(';'), std::string::npos); } } - if (recH.hasHeader("Content-Type") && - recH.GetHeader("Content-Type") == "application/sdp"){ + if ((recH.hasHeader("Content-Type") && + recH.GetHeader("Content-Type") == "application/sdp") || (recH.hasHeader("Content-type") && + recH.GetHeader("Content-type") == "application/sdp")){ INFO_MSG("Received SDP"); seenSDP = true; sdpState.parseSDP(recH.body);