MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _build_request_headers

Function _build_request_headers

helpers/network.py:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def _build_request_headers() -> dict[str, str]:
31 user_agent = (
32 os.getenv("USER_AGENT")
33 or os.getenv("user_agent")
34 or DEFAULT_HTTP_USER_AGENT
35 ).strip()
36 return {"User-Agent": user_agent or DEFAULT_HTTP_USER_AGENT}
37
38
39def _normalize_content_type(content_type: str | None) -> str | None:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected