Skip to content

Commit 32a1460

Browse files
committed
Update BenchmarkApp.cs
1 parent 82b7d3e commit 32a1460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BenchmarksApps/TechEmpower/Kestrel/BenchmarkApp.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static async Task JsonUtf8Bytes(IHttpResponseFeature res, IFeatureCollec
138138
await body.Writer.FlushAsync();
139139
}
140140

141-
private static async Task Json(IHttpResponseFeature res, IFeatureCollection features)
141+
private static Task Json(IHttpResponseFeature res, IFeatureCollection features)
142142
{
143143
res.StatusCode = StatusCodes.Status200OK;
144144
res.Headers.ContentType = JsonContentTypeWithCharset;
@@ -152,6 +152,7 @@ private static async Task Json(IHttpResponseFeature res, IFeatureCollection feat
152152

153153
//await body.StartAsync();
154154
//await body.Writer.FlushAsync();
155+
return Task.CompletedTask;
155156
}
156157

157158
[ThreadStatic]

0 commit comments

Comments
 (0)