Don't retain the POST content in memory

This commit is contained in:
Jeff Leung 2024-08-21 10:55:02 -07:00
parent cb14589a4a
commit 7297381105
1 changed files with 0 additions and 4 deletions

View File

@ -88,10 +88,6 @@ app.MapPost("/api/v1/upload", async (HttpRequest request, ILogger<Program> logge
{
try
{
using (var stream = new MemoryStream())
{
await request.Body.CopyToAsync(stream);
}
return Results.Ok();
}
catch (IOException ex)