From a90521c7121217d0813e12f873b8f8f51127a15a Mon Sep 17 00:00:00 2001 From: archie426 Date: Mon, 17 Jan 2022 15:00:42 +0000 Subject: [PATCH] Hotfix --- SophosSession.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SophosSession.cs b/SophosSession.cs index 28fac54..1b7b699 100644 --- a/SophosSession.cs +++ b/SophosSession.cs @@ -57,7 +57,7 @@ public async Task Login() { HttpResponseMessage msg = await _client.PostAsync(url, new FormUrlEncodedContent(body)); - if (msg.CheckSuccess()) { + if (!msg.CheckSuccess()) { throw new WebException("Request failed: " + msg.StatusCode); }