From 212a81659821cc579324e5141dc52b872c8c7db6 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 11 Oct 2017 19:02:45 +0900 Subject: [PATCH] Remove BOM --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Hosting/Startup.cs | 4 +--- BTCPayServer/Models/GetTokensResponse.cs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 9e98b2f30..191d975d3 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.0.6 + 1.0.0.7 diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index e8305eb93..3cb77e549 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -61,15 +61,13 @@ namespace BTCPayServer.Hosting } public void ConfigureServices(IServiceCollection services) { - // Big hack, tests fails because Hangfire fail at initializing at the second test run - - services.ConfigureBTCPayServer(Configuration); services.AddIdentity() .AddEntityFrameworkStores() .AddDefaultTokenProviders(); + // Big hack, tests fails because Hangfire fail at initializing at the second test run AddHangfireFix(services); services.AddBTCPayServer(); services.AddMvc(); diff --git a/BTCPayServer/Models/GetTokensResponse.cs b/BTCPayServer/Models/GetTokensResponse.cs index 1a29a72d3..60ae104a7 100644 --- a/BTCPayServer/Models/GetTokensResponse.cs +++ b/BTCPayServer/Models/GetTokensResponse.cs @@ -45,7 +45,7 @@ namespace BTCPayServer.Models } context.HttpContext.Response.Headers.Add("Content-Type", new Microsoft.Extensions.Primitives.StringValues("application/json")); var str = JsonConvert.SerializeObject(jobj); - using(var writer = new StreamWriter(context.HttpContext.Response.Body, Encoding.UTF8, 1024 * 10, true)) + using(var writer = new StreamWriter(context.HttpContext.Response.Body, new UTF8Encoding(false), 1024 * 10, true)) { await writer.WriteLineAsync(str); }