mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Remove BOM
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<Version>1.0.0.6</Version>
|
<Version>1.0.0.7</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="Build\dockerfiles\**" />
|
<Compile Remove="Build\dockerfiles\**" />
|
||||||
|
|||||||
@@ -61,15 +61,13 @@ namespace BTCPayServer.Hosting
|
|||||||
}
|
}
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
// Big hack, tests fails because Hangfire fail at initializing at the second test run
|
|
||||||
|
|
||||||
|
|
||||||
services.ConfigureBTCPayServer(Configuration);
|
services.ConfigureBTCPayServer(Configuration);
|
||||||
|
|
||||||
services.AddIdentity<ApplicationUser, IdentityRole>()
|
services.AddIdentity<ApplicationUser, IdentityRole>()
|
||||||
.AddEntityFrameworkStores<ApplicationDbContext>()
|
.AddEntityFrameworkStores<ApplicationDbContext>()
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
|
|
||||||
|
// Big hack, tests fails because Hangfire fail at initializing at the second test run
|
||||||
AddHangfireFix(services);
|
AddHangfireFix(services);
|
||||||
services.AddBTCPayServer();
|
services.AddBTCPayServer();
|
||||||
services.AddMvc();
|
services.AddMvc();
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace BTCPayServer.Models
|
|||||||
}
|
}
|
||||||
context.HttpContext.Response.Headers.Add("Content-Type", new Microsoft.Extensions.Primitives.StringValues("application/json"));
|
context.HttpContext.Response.Headers.Add("Content-Type", new Microsoft.Extensions.Primitives.StringValues("application/json"));
|
||||||
var str = JsonConvert.SerializeObject(jobj);
|
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);
|
await writer.WriteLineAsync(str);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user