diff --git a/Clients/IrdLibraryClient/IrdClient.cs b/Clients/IrdLibraryClient/IrdClient.cs index 9f632b18..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 Uri GetDownloadLink(string relativeLink) => new(BaseDownloadUri, relativeLink); + public static string GetDownloadLink(string relativeLink) + { + var encodedLink = Uri.EscapeDataString(relativeLink); + var fullUri = new Uri(BaseDownloadUri, encodedLink); + return fullUri.AbsoluteUri; + } } }