From c0020287272750ac2dfb7f4332896b842975c888 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 13 Jan 2024 10:53:57 -0500 Subject: [PATCH] bug fix in retry code --- CHANGELOG.md | 4 ++++ .../src/components/Services/Invidious/InvidiousService.bs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bb4ad2a..a0ea436a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bookmarks are now added to the top of the list - The search screen keyboard to make it easier to clear the search field +### Fixed + +- A bug with request retry mechanism introduced in 0.19.0 + ## [0.19.0] - 2024-01-10 ### Added diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs index 5d799a2d..ddef96a3 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs @@ -129,7 +129,7 @@ namespace Invidious ' Retrying should usually fix the issue. if response.StatusCode() = HttpClient.CurlErrors.CURLE_UNSUPPORTED_PROTOCOL errorMessage = response.ErrorMessage() - if errorMessage.Contains("HTTP/0.9") + if errorMessage.InStr("HTTP/0.9") <> -1 return true end if end if