Improved URL encode/decode behaviour

This commit is contained in:
Thulinma 2018-08-23 12:38:58 +02:00
parent ff19c9c625
commit e49f89c782
3 changed files with 8 additions and 12 deletions

View file

@ -108,7 +108,7 @@ namespace HTTP{
H.SetHeader("Host", proxyUrl.host);
}
}else{
H.url = "/" + Encodings::URL::encode(link.path);
H.url = "/" + Encodings::URL::encode(link.path, "/:=@[]");
if (link.args.size()){H.url += "?" + link.args;}
if (link.port.size()){
H.SetHeader("Host", link.host + ":" + link.port);