server: strip content-length header on proxy (#17734)
This commit is contained in:
parent
c4c10bfb86
commit
9d0229967a
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue