Allow '=' character in URL encoded paths and fragments

This commit is contained in:
Thulinma 2017-12-12 15:29:17 +01:00
parent dca157228e
commit dd8953faec
3 changed files with 5 additions and 5 deletions

View file

@ -176,9 +176,9 @@ std::string HTTP::URL::getUrl() const{
}
if (port.size() && getPort() != getDefaultPort()){ret += ":" + port;}
ret += "/";
if (path.size()){ret += Encodings::URL::encode(path);}
if (path.size()){ret += Encodings::URL::encode(path, "=");}
if (args.size()){ret += "?" + args;}
if (frag.size()){ret += "#" + Encodings::URL::encode(frag);}
if (frag.size()){ret += "#" + Encodings::URL::encode(frag, "=");}
return ret;
}