Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-08-23 12:43:50 +02:00
commit f5239deab2
2 changed files with 8 additions and 7 deletions

View file

@ -102,10 +102,10 @@ namespace HTTP{
}
if (proxied && !ssl){
H.url = link.getProxyUrl();
if (proxyUrl.port.size()){
H.SetHeader("Host", proxyUrl.host + ":" + proxyUrl.port);
if (link.port.size()){
H.SetHeader("Host", link.host + ":" + link.port);
}else{
H.SetHeader("Host", proxyUrl.host);
H.SetHeader("Host", link.host);
}
}else{
H.url = "/" + Encodings::URL::encode(link.path, "/:=@[]");