server: strip content-length header on proxy (#17734)

This commit is contained in:
Xuan-Son Nguyen 2025-12-04 16:32:57 +01:00 committed by GitHub
parent c4c10bfb86
commit 9d0229967a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View 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 // Headers that get duplicated when router forwards child responses
if (header_name == "server" || if (header_name == "server" ||
header_name == "transfer-encoding" || header_name == "transfer-encoding" ||
header_name == "content-length" || // quick fix for https://github.com/ggml-org/llama.cpp/issues/17710
header_name == "keep-alive") { header_name == "keep-alive") {
return true; return true;
} }