From 43504aebfc20c9a06614f04df5e684894c0b672c Mon Sep 17 00:00:00 2001 From: STAM Date: Fri, 6 Oct 2023 23:30:08 +0300 Subject: [PATCH] pre 1.1.0.0 --- src/DonloaderService.cs | 50 ++++++++++++++++++++++++++++++--- src/atlassian-downloader.csproj | 7 +++-- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/src/DonloaderService.cs b/src/DonloaderService.cs index 047b980..64fabc7 100644 --- a/src/DonloaderService.cs +++ b/src/DonloaderService.cs @@ -15,6 +15,8 @@ namespace EpicMorg.Atlassian.Downloader { class DonloaderService : IHostedService { + private readonly string UserAgentString = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0"; + private readonly ILogger logger; private readonly DownloaderOptions options; private readonly HttpClient client; @@ -40,7 +42,7 @@ public DonloaderService(IHostApplicationLifetime hostApplicationLifetime, ILogge { this.logger = logger; this.client = client; - client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0"); + client.DefaultRequestHeaders.Add("User-Agent", UserAgentString); this.options = options; this.hostApplicationLifetime = hostApplicationLifetime; } @@ -326,7 +328,47 @@ private async Task DownloadFilesFromFeed(string feedUrl, IDictionary Exe true + false true win-x64 true @@ -17,9 +18,9 @@ git https://github.com/EpicMorg/atlassian-downloader atlassian, donwloader, epicmorg - 1.0.1.1 - 1.0.1.1 - 1.0.1.1 + 1.1.0.0 + 1.1.0.0 + 1.1.0.0 EpicMorg 2023 Atlassian Downloader true