]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Ignore Transfer-Encoding header. (#20269)
authorRoger Chen <redacted>
Thu, 2 Apr 2026 08:41:19 +0000 (16:41 +0800)
committerGitHub <redacted>
Thu, 2 Apr 2026 08:41:19 +0000 (10:41 +0200)
tools/server/server-models.cpp

index 7e61844f0852a315fef871c75a033de1d6431a83..c83709272f03b45bf8bc4ee707988b8623d0d8c5 100644 (file)
@@ -1196,6 +1196,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") {
                 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));