From e442bde5a6eae61ba71b58719afa4bdf50dda1f9 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 28 Jun 2018 10:48:46 +0200 Subject: [PATCH] Fixed RTSP auth --- lib/http_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http_parser.cpp b/lib/http_parser.cpp index 1d45345b..44daa96f 100644 --- a/lib/http_parser.cpp +++ b/lib/http_parser.cpp @@ -346,7 +346,7 @@ void HTTP::Parser::auth(const std::string &user, const std::string &pass, return; } std::string urlPart; - if (url.find("://") != std::string::npos){ + if (url.find("://") != std::string::npos && url.substr(0, 4) != "rtsp"){ HTTP::URL tmpUrl(url); urlPart = "/" + tmpUrl.path; }else{