ParisNeo / ollama_proxy_server

A proxy server for multiple ollama instances with Key security
Apache License 2.0
269 stars 43 forks source link

case-sensitive http headers #12

Closed theoden8 closed 6 months ago

theoden8 commented 6 months ago

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

theoden8 commented 6 months ago

The issue was bearer token, apologies.

ParisNeo commented 5 months ago

No problem