Don't retain the POST content in memory
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user