api: http: Handle new LogOn url

This commit is contained in:
materro
2024-04-01 11:25:14 +02:00
committed by Yevhen Zadyra
parent 93eec8c46a
commit c0605eceb3

View File

@@ -71,7 +71,7 @@ package object http extends StrictLogging {
val lowercasedBody = body.toLowerCase
val code = httpResponse.code
code match {
case HttpURLConnection.HTTP_MOVED_TEMP if httpResponse.header("Location").exists(_.contains("/LogOn")) =>
case HttpURLConnection.HTTP_MOVED_TEMP if httpResponse.header("Location").exists(url => url.contains("/LogOn") || url.contains("/UniversalLink")) =>
Some(new SessionExpiredException)
case HttpURLConnection.HTTP_CONFLICT
if lowercasedBody