Merge cfd5d05816 into 825eb91a66
This commit is contained in:
commit
75225a93d6
|
|
@ -1196,6 +1196,10 @@ server_http_proxy::server_http_proxy(
|
||||||
// disable Accept-Encoding to avoid compressed responses
|
// disable Accept-Encoding to avoid compressed responses
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (key == "Transfer-Encoding") {
|
||||||
|
// the body is already decoded
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (key == "Host" || key == "host") {
|
if (key == "Host" || key == "host") {
|
||||||
bool is_default_port = (scheme == "https" && port == 443) || (scheme == "http" && port == 80);
|
bool is_default_port = (scheme == "https" && port == 443) || (scheme == "http" && port == 80);
|
||||||
req.set_header(key, is_default_port ? host : host + ":" + std::to_string(port));
|
req.set_header(key, is_default_port ? host : host + ":" + std::to_string(port));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue