Fixed misuse of Load. Seriously annoying the HtmlAgilityPack devs made it so ambiguous so when I switched from Streams it fucked everything up

This commit is contained in:
barelyprofessional
2025-07-24 23:57:38 -05:00
parent 35c3964854
commit 1b29e85342

View File

@@ -119,7 +119,7 @@ public class KfTokenService
public async Task PerformLogin(string username, string password) public async Task PerformLogin(string username, string password)
{ {
var document = new HtmlDocument(); var document = new HtmlDocument();
document.Load(await GetLoginPage()); document.LoadHtml(await GetLoginPage());
var html = document.DocumentNode.SelectSingleNode("//html"); var html = document.DocumentNode.SelectSingleNode("//html");
if (html == null) throw new Exception("Caught a null when retrieving html element"); if (html == null) throw new Exception("Caught a null when retrieving html element");
// Already logged in // Already logged in