Browse Source

Change ReadAllBytes to ReadAllBytesAsync in PicController

pull/1425/head
zakaria-c 4 years ago
parent
commit
fb9a2d2449
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Services/Catalog/Catalog.API/Controllers/PicController.cs

+ 1
- 1
src/Services/Catalog/Catalog.API/Controllers/PicController.cs View File

@ -46,7 +46,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
string imageFileExtension = Path.GetExtension(item.PictureFileName);
string mimetype = GetImageMimeTypeFromImageFileExtension(imageFileExtension);
var buffer = System.IO.File.ReadAllBytes(path);
var buffer = await System.IO.File.ReadAllBytesAsync(path);
return File(buffer, mimetype);
}


Loading…
Cancel
Save