style(mcp): drop impossible-scenario handling around the challenge header read
Some checks failed
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled

This commit is contained in:
Tin Chi Lo 2026-07-14 19:52:05 -07:00
parent 109a1637a0
commit c6d65670c4

View file

@ -94,11 +94,7 @@ def upstream_auth_challenge(exc: BaseException) -> tuple[int, str | None] | None
response = _find_upstream_response(exc)
if response is None or response.status_code not in (401, 403):
return None
try:
challenge = response.headers.get("www-authenticate")
except Exception:
challenge = None
return response.status_code, challenge
return response.status_code, response.headers.get("www-authenticate")
def raise_classified_list_failure(