mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-28 16:06:38 +01:00
api: http: Handle new LogOn url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user