]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server: avoid overwriting Authorization header (#10878)
authorGaetan Bisson <redacted>
Wed, 18 Dec 2024 14:00:07 +0000 (04:00 -1000)
committerGitHub <redacted>
Wed, 18 Dec 2024 14:00:07 +0000 (15:00 +0100)
commit7bbb5acf125d1d2840cac7d31b9aaa72210dd5ec
treea3e8ec0963108f6a1433d08778d3d23bac39feb3
parent152610eda91217ac409342cd976d05f5114ad39f
server: avoid overwriting Authorization header (#10878)

* server: avoid overwriting Authorization header

If no API key is set, leave the Authorization header as is. It may be
used by another part of the Web stack, such as an authenticating proxy.

Fixes https://github.com/ggerganov/llama.cpp/issues/10854

* rebuild

---------

Co-authored-by: Xuan Son Nguyen <redacted>
examples/server/public/index.html.gz
examples/server/webui/src/main.js