Add support for dual-'?' params in RIST push outputs, fix a small memory leak in RIST output

This commit is contained in:
Thulinma 2022-09-22 16:12:24 +02:00
parent 2d4a2f5835
commit 696e04d6a0
3 changed files with 19 additions and 9 deletions

View file

@ -206,8 +206,9 @@ std::string HTTP::URL::getUrl() const{
ret += host;
}
if (port.size() && getPort() != getDefaultPort()){ret += ":" + port;}
ret += "/";
ret += getEncodedPath();
if (protocol != "rist"){
ret += "/" + getEncodedPath();
}
if (args.size()){ret += "?" + args;}
if (frag.size()){ret += "#" + Encodings::URL::encode(frag, "/:=@[]#?&");}
return ret;