Skip to content

Commit 4198c82

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

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
@@ -354,7 +354,7 @@ private static string InspectStreamFormat(Stream stream)
354354
{
355355
// Buffer stream for non-JSON formats (e.g., YAML) since they require synchronous reading
356356
preparedStream = new MemoryStream();
357-
await input.CopyToAsync(preparedStream, 81920, token);
357+
await input.CopyToAsync(preparedStream, 81920, token).ConfigureAwait(false);
358358
preparedStream.Position = 0;
359359
}
360360
}

0 commit comments

Comments
 (0)