Allow '=' character in URL encoded paths and fragments
This commit is contained in:
parent
dca157228e
commit
dd8953faec
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue