diff --git a/src/BenchmarksApps/TechEmpower/Kestrel/BenchmarkApp.cs b/src/BenchmarksApps/TechEmpower/Kestrel/BenchmarkApp.cs index a3bd2b888..61aaa6569 100644 --- a/src/BenchmarksApps/TechEmpower/Kestrel/BenchmarkApp.cs +++ b/src/BenchmarksApps/TechEmpower/Kestrel/BenchmarkApp.cs @@ -23,6 +23,7 @@ public Task ProcessRequestAsync(IFeatureCollection features) if (req.Method != "GET") { res.StatusCode = StatusCodes.Status405MethodNotAllowed; + return Task.CompletedTask; } return req.Path switch