(headers: Any)
| 98 | |
| 99 | |
| 100 | def _extract_session_token(headers: Any) -> Optional[str]: |
| 101 | for line in _get_set_cookies(headers): |
| 102 | first = str(line).split(";", 1)[0].strip() |
| 103 | if not first.startswith(f"{SESSION_COOKIE_NAME}="): |
| 104 | continue |
| 105 | return first.split("=", 1)[1].strip() |
| 106 | return None |
| 107 | |
| 108 | |
| 109 | def _extract_redirect_from_html(text: str) -> Optional[str]: |
no test coverage detected