Skip to content
Snippets Groups Projects

[3.0] demux: adaptive: fix bogus port discarding condition

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -70,8 +70,8 @@ void ConnectionParams::setPath(const std::string &path_)
if(!hostname.empty())
{
os << hostname;
if( (port != 80 && scheme != "http") ||
(port != 443 && scheme != "https") )
if( (port != 80 && scheme == "http") ||
(port != 443 && scheme == "https") )
os << ":" << port;
}
os << path;
Loading