fix get installer url

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-29 18:38:49 +03:00
parent 429b39ee32
commit 9b80eaf435
+1 -1
View File
@@ -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);