From 1e0d00ae73321cddccc063475c90defa5beda592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=A4geli?= Date: Fri, 10 Jul 2026 09:55:03 +0200 Subject: [PATCH 1/2] feat(genhttp-11): Update to preview 20 --- src/Servers/GenHttpServer11/GenHttpServer.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 @@ - - - + + + From d862e908dda620dbe37cebf8296f88ca81789dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=A4geli?= Date: Fri, 10 Jul 2026 14:57:04 +0200 Subject: [PATCH 2/2] feat(genhttp-11): Properly handle chunked validation --- src/Servers/GenHttpServer11/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; +}