From de8fc19240500a3d1eb7a3bbad4fb0de8609272c Mon Sep 17 00:00:00 2001 From: FlexBy420 <68403300+FlexBy420@users.noreply.github.com> Date: Sat, 14 Dec 2024 18:54:43 +0100 Subject: [PATCH] fix warning --- Clients/IrdLibraryClient/IrdClient.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Clients/IrdLibraryClient/IrdClient.cs b/Clients/IrdLibraryClient/IrdClient.cs index 32ac2cf1..fa67770b 100644 --- a/Clients/IrdLibraryClient/IrdClient.cs +++ b/Clients/IrdLibraryClient/IrdClient.cs @@ -125,6 +125,11 @@ public async Task> DownloadAsync(string productCode, string localCache } } - public static string GetDownloadLink(string relativeLink) => Uri.EscapeUriString(new Uri(BaseDownloadUri, relativeLink).ToString()); + public static string GetDownloadLink(string relativeLink) + { + var encodedLink = Uri.EscapeDataString(relativeLink); + var fullUri = new Uri(BaseDownloadUri, encodedLink); + return fullUri.AbsoluteUri; + } } }