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{