]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server: strip content-length header on proxy (#17734)
authorXuan-Son Nguyen <redacted>
Thu, 4 Dec 2025 15:32:57 +0000 (16:32 +0100)
committerGitHub <redacted>
Thu, 4 Dec 2025 15:32:57 +0000 (16:32 +0100)
tools/server/server-models.cpp

index c1fbaf4ec915da8cba58db8284c21af3192cf0a3..6f88e93c4bb209d8cb1d5fc28af76cabbd2be2d9 100644 (file)
@@ -900,6 +900,7 @@ static bool should_strip_proxy_header(const std::string & header_name) {
     // Headers that get duplicated when router forwards child responses
     if (header_name == "server" ||
         header_name == "transfer-encoding" ||
+        header_name == "content-length" || // quick fix for https://github.com/ggml-org/llama.cpp/issues/17710
         header_name == "keep-alive") {
         return true;
     }