We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c76db commit a66e21bCopy full SHA for a66e21b
src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs
@@ -341,8 +341,8 @@ private static string InspectStreamFormat(Stream stream)
341
// YAML or other non-JSON format; copy remaining input to a new stream.
342
preparedStream = new MemoryStream();
343
bufferStream.Position = 0;
344
- await bufferStream.CopyToAsync(preparedStream, 81920, token); // Copy buffered portion
345
- await input.CopyToAsync(preparedStream, 81920, token); // Copy remaining data
+ await bufferStream.CopyToAsync(preparedStream, 81920, token).ConfigureAwait(false); // Copy buffered portion
+ await input.CopyToAsync(preparedStream, 81920, token).ConfigureAwait(false); // Copy remaining data
346
preparedStream.Position = 0;
347
}
348
0 commit comments