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){
|
||||
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, "/:=@[]");
|
||||
|
|
Loading…
Add table
Reference in a new issue