server: fix duplicate HTTP headers in multiple models mode (#17698)

* llama-server: fix duplicate HTTP headers in multiple models mode (#17693)

* llama-server: address review feedback from ngxson

- restrict scope of header after std::move
- simplify header check (remove unordered_set)
This commit is contained in:
Pascal 2025-12-03 10:28:43 +01:00 committed by GitHub
parent 7ca5991d2b
commit 5ceed62421
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 10 deletions

View file

@ -170,5 +170,6 @@ private:
std::map<std::string, std::string> headers;
int status = 0;
std::string data;
std::string content_type;
};
};