Skip to content

Commit dde592f

Browse files
Use async
1 parent fcd9d51 commit dde592f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private async Task ProcessRequestAsync(HttpContext context, bool processRequest,
265265
// No commands? We simply copy the stream across.
266266
if (commands.Count == 0)
267267
{
268-
format = Image.DetectFormat(this.options.Configuration, inStream);
268+
format = await Image.DetectFormatAsync(this.options.Configuration, inStream);
269269
await inStream.CopyToAsync(outStream);
270270
}
271271
else

0 commit comments

Comments
 (0)