Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FlexBy420 authored Dec 14, 2024
1 parent 1c77963 commit de8fc19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Clients/IrdLibraryClient/IrdClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ public async Task<List<Ird>> 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;
}
}
}

0 comments on commit de8fc19

Please sign in to comment.