mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Update litellm/proxy/_experimental/mcp_server/server.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
7483a39c1d
commit
7d1ee90841
1 changed files with 5 additions and 1 deletions
|
|
@ -382,10 +382,14 @@ if MCP_AVAILABLE:
|
|||
(b"content-type", b"application/json"),
|
||||
]
|
||||
if raw_headers:
|
||||
for k, v in raw_headers.items():
|
||||
try:
|
||||
_scope_headers.append(
|
||||
(k.lower().encode("latin-1"), v.encode("latin-1"))
|
||||
)
|
||||
except (UnicodeEncodeError, UnicodeDecodeError):
|
||||
verbose_logger.debug(
|
||||
f"Skipping header {k!r}: contains non-Latin-1 characters"
|
||||
)
|
||||
request = Request(
|
||||
scope={
|
||||
"type": "http",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue