Skip to content

Commit cce492c

Browse files
authored
Merge pull request #965 from FlexBy420/patch-6
fix ird download link
2 parents 6823a30 + de8fc19 commit cce492c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Clients/IrdLibraryClient/IrdClient.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ public async Task<List<Ird>> DownloadAsync(string productCode, string localCache
125125
}
126126
}
127127

128-
public static Uri GetDownloadLink(string relativeLink) => new(BaseDownloadUri, relativeLink);
128+
public static string GetDownloadLink(string relativeLink)
129+
{
130+
var encodedLink = Uri.EscapeDataString(relativeLink);
131+
var fullUri = new Uri(BaseDownloadUri, encodedLink);
132+
return fullUri.AbsoluteUri;
133+
}
129134
}
130135
}

0 commit comments

Comments
 (0)