diff --git a/Azaion.LoaderUI/AzaionApi.cs b/Azaion.LoaderUI/AzaionApi.cs index 5e59249..4bb01aa 100644 --- a/Azaion.LoaderUI/AzaionApi.cs +++ b/Azaion.LoaderUI/AzaionApi.cs @@ -33,7 +33,7 @@ public class AzaionApi(HttpClient client) : IAzaionApi public async Task<(string name, Stream stream)> DownloadInstaller(bool isStage = false) { - var response = await Send(new HttpRequestMessage(HttpMethod.Get, $"resources/get-installer/{isStage}")); + var response = await Send(new HttpRequestMessage(HttpMethod.Get, $"resources/get-installer/{(isStage ? "stage" : "")}")); var fileStream = await response.Content.ReadAsStreamAsync(); var fileName = response.Content.Headers.ContentDisposition?.FileName?.Trim('"') ?? "installer.exe"; return (fileName, fileStream);