mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 05:16:29 +00:00
fix get installer url
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user