fix(mcp): preserve strict lint budget

This commit is contained in:
MokshaVora 2026-08-10 17:07:49 +05:30
parent c8ca0d6228
commit 907e6534fa
2 changed files with 10 additions and 10 deletions

View file

@ -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())

View file

@ -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
):