Fix proxy behaviour
This commit is contained in:
parent
e49f89c782
commit
06c0365b44
1 changed files with 3 additions and 3 deletions
|
@ -102,10 +102,10 @@ namespace HTTP{
|
||||||
}
|
}
|
||||||
if (proxied && !ssl){
|
if (proxied && !ssl){
|
||||||
H.url = link.getProxyUrl();
|
H.url = link.getProxyUrl();
|
||||||
if (proxyUrl.port.size()){
|
if (link.port.size()){
|
||||||
H.SetHeader("Host", proxyUrl.host + ":" + proxyUrl.port);
|
H.SetHeader("Host", link.host + ":" + link.port);
|
||||||
}else{
|
}else{
|
||||||
H.SetHeader("Host", proxyUrl.host);
|
H.SetHeader("Host", link.host);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
H.url = "/" + Encodings::URL::encode(link.path, "/:=@[]");
|
H.url = "/" + Encodings::URL::encode(link.path, "/:=@[]");
|
||||||
|
|
Loading…
Add table
Reference in a new issue