diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index e43973286..632e25e60 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -122,12 +122,15 @@ namespace BTCPayServer.Tests var url = match.Groups[1].Value; try { - Assert.Equal(HttpStatusCode.OK, (await httpClient.GetAsync(url)).StatusCode); + using var request = new HttpRequestMessage(HttpMethod.Get, new Uri(url)); + request.Headers.TryAddWithoutValidation("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"); + request.Headers.TryAddWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0"); + Assert.Equal(HttpStatusCode.OK, (await httpClient.SendAsync(request)).StatusCode); Logs.Tester.LogInformation($"OK: {url} ({file})"); } - catch + catch(EqualException ex) { - Logs.Tester.LogInformation($"FAILED: {url} ({file})"); + Logs.Tester.LogInformation($"FAILED: {url} ({file}) {ex.Actual}"); throw; } } diff --git a/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml b/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml index a0b4d6c49..b3738f149 100644 --- a/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml +++ b/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml @@ -9,7 +9,6 @@
  • Download a two-factor authenticator app like Microsoft Authenticator for - Windows Phone, Android and iOS or Google Authenticator for