mirror of
https://github.com/bitwarden/server
synced 2025-12-29 06:33:43 +00:00
update libs and remove old code/workarounds
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AngleSharp" Version="0.9.10" />
|
||||
<PackageReference Include="AngleSharp" Version="0.11.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Icons.Models;
|
||||
using AngleSharp.Parser.Html;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text;
|
||||
using AngleSharp.Html.Parser;
|
||||
|
||||
namespace Bit.Icons.Services
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace Bit.Icons.Services
|
||||
var parser = new HtmlParser();
|
||||
using(response)
|
||||
using(var htmlStream = await response.Content.ReadAsStreamAsync())
|
||||
using(var document = await parser.ParseAsync(htmlStream))
|
||||
using(var document = await parser.ParseDocumentAsync(htmlStream))
|
||||
{
|
||||
uri = response.RequestMessage.RequestUri;
|
||||
if(document.DocumentElement == null)
|
||||
|
||||
Reference in New Issue
Block a user