From 5c2d63d79ac0a7d6077cdd095393368d7298fc80 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 8 Sep 2022 16:52:59 -1000 Subject: [PATCH] Format problem details (#36) * problem details formatting * Moniker prep for Problem Details --- fundamentals/middleware/problem-details-service/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals/middleware/problem-details-service/Program.cs b/fundamentals/middleware/problem-details-service/Program.cs index 5832d3d..6fc0eae 100644 --- a/fundamentals/middleware/problem-details-service/Program.cs +++ b/fundamentals/middleware/problem-details-service/Program.cs @@ -42,7 +42,7 @@ app.UseHttpsRedirection(); app.Use(async (context, next) => { var mathErrorFeature = new MathErrorFeature(); - context.Features.Set(mathErrorFeature); + context.Features.Set(new MathErrorFeature()); await next(context); });