Skip to content

Commit e8c76db

Browse files
Update src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 5ca061b commit e8c76db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private static string InspectStreamFormat(Stream stream)
325325
{
326326
// Use a temporary buffer to read a small portion for format detection
327327
using var bufferStream = new MemoryStream();
328-
await input.CopyToAsync(bufferStream, 1024, token);
328+
await input.CopyToAsync(bufferStream, 1024, token).ConfigureAwait(false);
329329
bufferStream.Position = 0;
330330

331331
// Inspect the format from the buffered portion

0 commit comments

Comments
 (0)