Skip to content

Commit

Permalink
New: Improved messaging when qBittorrent fails due to host header rej…
Browse files Browse the repository at this point in the history
…ection

(cherry picked from commit 48b4cc5f3ffa0cb8eea6748db9091267216cef4f)
  • Loading branch information
markus101 authored and Qstick committed Jan 3, 2023
1 parent e085f6a commit 0697d69
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public bool IsApiSupported(QBittorrentSettings settings)
return true;
}

if (response.StatusCode == HttpStatusCode.Unauthorized)
{
throw new DownloadClientException("Failed to connect to qBittorrent. Check your settings and qBittorrent configuration.", new HttpException(response));
}

if (response.HasHttpError)
{
throw new DownloadClientException("Failed to connect to qBittorrent, check your settings.", new HttpException(response));
Expand Down

0 comments on commit 0697d69

Please sign in to comment.