mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
possibly fix the github timeout issue
This commit is contained in:
@@ -159,7 +159,7 @@ public class GitHubRepository(ILogger logger) : SourceRepository<GitHubDownloadO
|
||||
private async Task UploadFileAsAsset(GitHubClient client, Release release, string filePath)
|
||||
{
|
||||
using var stream = File.OpenRead(filePath);
|
||||
var data = new ReleaseAssetUpload(Path.GetFileName(filePath), "application/octet-stream", stream, timeout: null);
|
||||
var data = new ReleaseAssetUpload(Path.GetFileName(filePath), "application/octet-stream", stream, timeout: TimeSpan.Zero);
|
||||
await client.Repository.Release.UploadAsset(release, data, CancellationToken.None);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user