Misc AngleSharp improvements

This commit is contained in:
JustArchi
2020-04-18 00:26:54 +02:00
parent 278935661a
commit 85d4dcbe27

View File

@@ -837,10 +837,10 @@ namespace ArchiSteamFarm {
throw new ArgumentNullException(nameof(streamResponse));
}
IBrowsingContext context = BrowsingContext.New(Configuration.Default.WithXPath());
using IBrowsingContext context = BrowsingContext.New(Configuration.Default);
try {
IDocument document = await context.OpenAsync(req => req.Content(streamResponse.Content, true)).ConfigureAwait(false);
IDocument document = await context.OpenAsync(req => req.Content(streamResponse.Content)).ConfigureAwait(false);
return new HtmlDocumentResponse(streamResponse, document);
} catch (Exception e) {