We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dae2bf4 commit d6dac92Copy full SHA for d6dac92
1 file changed
tools/server/server-models.cpp
@@ -1196,6 +1196,10 @@ server_http_proxy::server_http_proxy(
1196
// disable Accept-Encoding to avoid compressed responses
1197
continue;
1198
}
1199
+ if (key == "Transfer-Encoding") {
1200
+ // the body is already decoded
1201
+ continue;
1202
+ }
1203
if (key == "Host" || key == "host") {
1204
bool is_default_port = (scheme == "https" && port == 443) || (scheme == "http" && port == 80);
1205
req.set_header(key, is_default_port ? host : host + ":" + std::to_string(port));
0 commit comments