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); });