Ignore Transfer-Encoding header.
This commit is contained in:
parent
ae87863dc1
commit
cfd5d05816
|
|
@ -1155,6 +1155,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") {
|
||||||
req.set_header(key, host);
|
req.set_header(key, host);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue