mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
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:
@@ -119,7 +119,7 @@ public class KfTokenService
|
||||
public async Task PerformLogin(string username, string password)
|
||||
{
|
||||
var document = new HtmlDocument();
|
||||
document.Load(await GetLoginPage());
|
||||
document.LoadHtml(await GetLoginPage());
|
||||
var html = document.DocumentNode.SelectSingleNode("//html");
|
||||
if (html == null) throw new Exception("Caught a null when retrieving html element");
|
||||
// Already logged in
|
||||
|
||||
Reference in New Issue
Block a user