From 3efa3686d2972d2280fb286d64aec4ab5e612d78 Mon Sep 17 00:00:00 2001 From: Patrick Burrows Date: Sun, 13 Oct 2024 05:18:38 -0400 Subject: [PATCH] bump version to 1.1 --- Unfurl.Net/Unfurl.Net.nuspec | 2 +- Unfurl.Net/Unfurl.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Unfurl.Net/Unfurl.Net.nuspec b/Unfurl.Net/Unfurl.Net.nuspec index 746fa70..e20226b 100644 --- a/Unfurl.Net/Unfurl.Net.nuspec +++ b/Unfurl.Net/Unfurl.Net.nuspec @@ -2,7 +2,7 @@ Unfurl.Net - 1.0.0 + 1.1.0 Unfurl.Net Patrick Burrows https://raw.githubusercontent.com/pburrows/unfurl.net/main/LICENSE diff --git a/Unfurl.Net/Unfurl.cs b/Unfurl.Net/Unfurl.cs index 1ddb586..42bec72 100644 --- a/Unfurl.Net/Unfurl.cs +++ b/Unfurl.Net/Unfurl.cs @@ -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; } @@ -242,7 +242,7 @@ private static void ParseOgImages(HtmlNode head, UnfurlResult result) private async Task 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;