()
| 28 | |
| 29 | |
| 30 | def _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 | |
| 39 | def _normalize_content_type(content_type: str | None) -> str | None: |
no outgoing calls
no test coverage detected