(method: Optional[str])
| 161 | |
| 162 | |
| 163 | def _normalize_runtime_method(method: Optional[str]) -> str: |
| 164 | normalized = (method or "").strip().lower() |
| 165 | if normalized not in {"browser", "personal"}: |
| 166 | raise HTTPException(status_code=400, detail="Invalid runtime method") |
| 167 | return normalized |
| 168 | |
| 169 | |
| 170 | async def _prepare_captcha_runtime(method: str): |
no outgoing calls
no test coverage detected