Don't retain the POST content in memory

This commit is contained in:
2024-08-21 10:55:02 -07:00
parent cb14589a4a
commit 7297381105

View File

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