mirror of
https://github.com/ParisNeo/ollama_proxy_server.git
synced 2026-01-13 14:18:00 -05:00
case-sensitive http headers #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theoden8 on 5/14/2024
It seems that the header keys are camelcase, while according to https://www.rfc-editor.org/rfc/rfc7230 header fields are case-insensitive. This leads to 403.
Example:
https://github.com/ParisNeo/ollama_proxy_server/blob/main/ollama_proxy_server/main.py#L101
https://github.com/ParisNeo/ollama_proxy_server/blob/main/ollama_proxy_server/main.py#L123
Related: https://github.com/Mobile-Artificial-Intelligence/maid/issues/530#issuecomment-2106339582