Skip to content

Commit

Permalink
bump version to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burrows committed Oct 13, 2024
1 parent 12f3c34 commit 3efa368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Unfurl.Net/Unfurl.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Unfurl.Net</id>
<version>1.0.0</version>
<version>1.1.0</version>
<title>Unfurl.Net</title>
<authors>Patrick Burrows</authors>
<licenseUrl>https://raw.githubusercontent.com/pburrows/unfurl.net/main/LICENSE</licenseUrl>
Expand Down
4 changes: 2 additions & 2 deletions Unfurl.Net/Unfurl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private async Task ParseOEmbedMetadata(UnfurlResult result, UnfurlOptions? optio
logger?.LogWarning("OEmbedHttpClient not set. You should either set a value for OEmbedHttpClient or turn off oEmbed parsing by setting LoadOEmbed = false");
client = new HttpClient();
}
var oEmbedContent = await GetOembedContent(client, result.OEmbedLink!, options?.UserAgent ?? "Unfurl.Net/1.0");
var oEmbedContent = await GetOembedContent(client, result.OEmbedLink!, options?.UserAgent ?? "Unfurl.Net/1.1");
result.OEmbed = oEmbedContent;
}

Expand Down Expand Up @@ -242,7 +242,7 @@ private static void ParseOgImages(HtmlNode head, UnfurlResult result)
private async Task<HtmlDocument?> GetDocument(string url, UnfurlOptions? options, UnfurlResult result)
{
var web = new HtmlWeb();
web.UserAgent = options?.UserAgent ?? "Unfurl.Net/1.0";
web.UserAgent = options?.UserAgent ?? "Unfurl.Net/1.1";
web.MaxAutoRedirects = options?.MaximumRedirects;
web.CaptureRedirect = options?.MaximumRedirects == null;

Expand Down

0 comments on commit 3efa368

Please sign in to comment.