mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix warnings
This commit is contained in:
@@ -63,7 +63,10 @@ namespace BTCPayServer.Plugins
|
||||
}
|
||||
var filedest = Path.Join(dest, ext.Name);
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(filedest));
|
||||
new WebClient().DownloadFile(new Uri(ext.DownloadUrl), filedest);
|
||||
using var resp2 = await _githubClient.GetAsync(ext.DownloadUrl);
|
||||
using var fs = new FileStream(filedest, FileMode.Create, FileAccess.ReadWrite);
|
||||
await resp2.Content.CopyToAsync(fs);
|
||||
await fs.FlushAsync();
|
||||
}
|
||||
|
||||
public void InstallPlugin(string plugin)
|
||||
|
||||
Reference in New Issue
Block a user