mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 17:12:56 +00:00
Fix URL formatting in plugin download logic
This commit is contained in:
parent
26aeed692c
commit
55ee5dacdb
@ -11,7 +11,8 @@ public static partial class PluginFactory
|
||||
try
|
||||
{
|
||||
using var httpClient = new HttpClient();
|
||||
var response = await httpClient.GetAsync($"{configServerUrl}/{configPlugId}.zip", cancellationToken);
|
||||
var serverUrl = configServerUrl.EndsWith('/') ? configServerUrl[..^1] : configServerUrl;
|
||||
var response = await httpClient.GetAsync($"{serverUrl}/{configPlugId}.zip", cancellationToken);
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
await using var tempFileStream = File.Create(tempDownloadFile);
|
||||
|
Loading…
Reference in New Issue
Block a user