diff --git a/strix/interface/scan_setup.py b/strix/interface/scan_setup.py index 30c8db59..7b22250a 100644 --- a/strix/interface/scan_setup.py +++ b/strix/interface/scan_setup.py @@ -67,13 +67,6 @@ def _first_non_ascii(value: str) -> tuple[int, str] | None: def check_header_safe_credentials(settings: Settings) -> None: - """Reject credential settings that cannot travel as HTTP header values. - - httpx encodes header values as ASCII, so a smart quote, non-breaking space - or byte-order mark pasted into an API key otherwise surfaces as a bare - ``UnicodeEncodeError`` from inside the client. Name the setting and the - character instead; the value itself is neither printed nor rewritten. - """ llm = settings.llm candidates: list[tuple[str, str]] = [] if llm.api_key: diff --git a/tests/test_preflight_header_values.py b/tests/test_preflight_header_values.py index cdd8944e..4e99a993 100644 --- a/tests/test_preflight_header_values.py +++ b/tests/test_preflight_header_values.py @@ -1,5 +1,3 @@ -"""Preflight names a non-ASCII character in a credential instead of raising UnicodeEncodeError.""" - from __future__ import annotations import asyncio