mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix(mcp): preserve strict lint budget
This commit is contained in:
parent
c8ca0d6228
commit
907e6534fa
2 changed files with 10 additions and 10 deletions
|
|
@ -4844,11 +4844,11 @@ class MCPServerManager:
|
|||
user_api_key_auth=user_api_key_auth,
|
||||
)
|
||||
|
||||
for header in mcp_server.extra_headers:
|
||||
if not isinstance(header, str):
|
||||
continue
|
||||
if _is_gateway_attribution_header(header):
|
||||
continue
|
||||
for header in (
|
||||
header
|
||||
for header in mcp_server.extra_headers
|
||||
if isinstance(header, str) and not _is_gateway_attribution_header(header)
|
||||
):
|
||||
if header.lower() == "authorization" and strip_caller_authorization:
|
||||
continue
|
||||
header_value = normalized_raw_headers.get(header.lower())
|
||||
|
|
|
|||
|
|
@ -1763,11 +1763,11 @@ if MCP_AVAILABLE:
|
|||
user_api_key_auth=user_api_key_auth,
|
||||
)
|
||||
|
||||
for header in server.extra_headers:
|
||||
if not isinstance(header, str):
|
||||
continue
|
||||
if _is_gateway_attribution_header(header):
|
||||
continue
|
||||
for header in (
|
||||
header
|
||||
for header in server.extra_headers
|
||||
if isinstance(header, str) and not _is_gateway_attribution_header(header)
|
||||
):
|
||||
if header.lower() == "authorization" and (
|
||||
strip_caller_authorization or withhold_forwarded_authorization
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue