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 5ca061b commit e8c76dbCopy full SHA for e8c76db
src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs
@@ -325,7 +325,7 @@ private static string InspectStreamFormat(Stream stream)
325
{
326
// Use a temporary buffer to read a small portion for format detection
327
using var bufferStream = new MemoryStream();
328
- await input.CopyToAsync(bufferStream, 1024, token);
+ await input.CopyToAsync(bufferStream, 1024, token).ConfigureAwait(false);
329
bufferStream.Position = 0;
330
331
// Inspect the format from the buffered portion
0 commit comments