Skip to content

Commit 9d02299

Browse files
authored
server: strip content-length header on proxy (#17734)
1 parent c4c10bf commit 9d02299

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/server/server-models.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ static bool should_strip_proxy_header(const std::string & header_name) {
900900
// Headers that get duplicated when router forwards child responses
901901
if (header_name == "server" ||
902902
header_name == "transfer-encoding" ||
903+
header_name == "content-length" || // quick fix for https://github.com/ggml-org/llama.cpp/issues/17710
903904
header_name == "keep-alive") {
904905
return true;
905906
}

0 commit comments

Comments
 (0)