diff --git a/src/Servers/GenHttpServer11/GenHttpServer.csproj b/src/Servers/GenHttpServer11/GenHttpServer.csproj index 3b7c84d..c75e615 100644 --- a/src/Servers/GenHttpServer11/GenHttpServer.csproj +++ b/src/Servers/GenHttpServer11/GenHttpServer.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/src/Servers/GenHttpServer11/Program.cs b/src/Servers/GenHttpServer11/Program.cs index 9c964c5..51f5ca3 100644 --- a/src/Servers/GenHttpServer11/Program.cs +++ b/src/Servers/GenHttpServer11/Program.cs @@ -59,4 +59,13 @@ static string ParseCookies(IRequest request) static string StringContent() => "OK"; -static Stream RequestContent(Stream body) => body; +static async Task RequestContent(Stream body) +{ + var memoryStream = new MemoryStream(); + + await body.CopyToAsync(memoryStream); + + memoryStream.Seek(0, SeekOrigin.Begin); + + return memoryStream; +}