|
@ -125,7 +125,7 @@ namespace IPA.Updating.BeatMods |
|
|
private static readonly Dictionary<string, ApiEndpoint.Mod> modCache = new Dictionary<string, ApiEndpoint.Mod>(); |
|
|
private static readonly Dictionary<string, ApiEndpoint.Mod> modCache = new Dictionary<string, ApiEndpoint.Mod>(); |
|
|
internal static IEnumerator GetModInfo(string modName, string ver, Ref<ApiEndpoint.Mod> result) |
|
|
internal static IEnumerator GetModInfo(string modName, string ver, Ref<ApiEndpoint.Mod> result) |
|
|
{ |
|
|
{ |
|
|
var uri = string.Format(ApiEndpoint.GetModInfoEndpoint, Uri.EscapeUriString(modName), Uri.EscapeUriString(ver)); |
|
|
|
|
|
|
|
|
var uri = string.Format(ApiEndpoint.GetModInfoEndpoint, Uri.EscapeDataString(modName), Uri.EscapeDataString(ver)); |
|
|
|
|
|
|
|
|
if (modCache.TryGetValue(uri, out ApiEndpoint.Mod value)) |
|
|
if (modCache.TryGetValue(uri, out ApiEndpoint.Mod value)) |
|
|
{ |
|
|
{ |
|
|