Don't retain the POST content in memory
This commit is contained in:
parent
cb14589a4a
commit
7297381105
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue