Ignore Transfer-Encoding header.

This commit is contained in:
Roger Chen 2026-03-09 13:28:26 +08:00
parent ae87863dc1
commit cfd5d05816
1 changed files with 4 additions and 0 deletions

View File

@ -1155,6 +1155,10 @@ server_http_proxy::server_http_proxy(
// disable Accept-Encoding to avoid compressed responses
continue;
}
if (key == "Transfer-Encoding") {
// the body is already decoded
continue;
}
if (key == "Host" || key == "host") {
req.set_header(key, host);
} else {