Skip to content

Commit 47d25a5

Browse files
Wayne DouglasBart Koelman
Wayne Douglas
authored and
Bart Koelman
committed
Fix synchronous error in flushasync
1 parent a0950f7 commit 47d25a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Middleware/JsonApiMiddleware.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private static async Task FlushResponseAsync(HttpResponse httpResponse, JsonSeri
146146
await stream.CopyToAsync(httpResponse.Body);
147147
}
148148

149-
httpResponse.Body.Flush();
149+
await httpResponse.Body.FlushAsync();
150150
}
151151

152152
private static void SetupCurrentRequest(ICurrentRequest currentRequest, ResourceContext resourceContext,

0 commit comments

Comments
 (0)