mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc AngleSharp improvements
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user