Skip to content

Commit 067e271

Browse files
committed
style: format ACP MCP headers helper
1 parent d9f9125 commit 067e271

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

openhands-sdk/openhands/sdk/agent/acp_agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,7 @@ def _extract_session_models(
403403
def _remote_mcp_headers(spec: dict[str, Any], name: str) -> list[HttpHeader]:
404404
"""Convert remote MCP headers/auth into ACP's header-only representation."""
405405
raw_headers = spec.get("headers") or {}
406-
headers = [
407-
HttpHeader(name=str(k), value=str(v)) for k, v in raw_headers.items()
408-
]
406+
headers = [HttpHeader(name=str(k), value=str(v)) for k, v in raw_headers.items()]
409407

410408
auth = spec.get("auth")
411409
has_authorization = any(h.name.lower() == "authorization" for h in headers)

0 commit comments

Comments
 (0)