Skip to content

Commit 63fecd0

Browse files
committed
ASP.NET Core 3.1
1 parent 45112a8 commit 63fecd0

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

GitServer.Infrastructure/GitServer.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" />
8+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.3" />
99
</ItemGroup>
1010

1111
<ItemGroup>

GitServer/Controllers/GitCommandResult.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
using System.IO.Compression;
44
using System.Threading.Tasks;
55
using Microsoft.AspNetCore.Http;
6+
using Microsoft.AspNetCore.Http.Features;
67
using Microsoft.AspNetCore.Mvc;
78

89
namespace GitServer.Controllers
910
{
1011
public class GitCommandResult : IActionResult
11-
{
12+
{
1213
private string _gitPath;
1314

1415
public GitCommandOptions Options { get; set; }
@@ -21,6 +22,11 @@ public GitCommandResult(string gitPath, GitCommandOptions options)
2122

2223
public async Task ExecuteResultAsync(ActionContext context)
2324
{
25+
var httpBodyControlFeature = context.HttpContext.Features.Get<IHttpBodyControlFeature>();
26+
if (httpBodyControlFeature != null)
27+
{
28+
httpBodyControlFeature.AllowSynchronousIO = true;
29+
}
2430
HttpResponse response = context.HttpContext.Response;
2531
Stream responseStream = GetOutputStream(context.HttpContext);
2632

GitServer/GitServer.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
@@ -12,10 +12,10 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="LibGit2Sharp" Version="0.26.1" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.0" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0" />
18-
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.18" />
15+
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.3" />
17+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.3" />
18+
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.19" />
1919
</ItemGroup>
2020
<ItemGroup>
2121
<None Include="wwwroot\js\highlight\highlight.pack.js" />

0 commit comments

Comments
 (0)