Skip to content

Commit afc4055

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

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
@@ -315,7 +315,7 @@ private static string InspectTextReaderFormat(TextReader reader)
315315

316316
private static string InspectInputFormat(string input)
317317
{
318-
return input.StartsWith("{") || input.StartsWith("[") ? OpenApiConstants.Json : OpenApiConstants.Yaml;
318+
return input.StartsWith("{", StringComparison.OrdinalIgnoreCase) || input.StartsWith("[", StringComparison.OrdinalIgnoreCase) ? OpenApiConstants.Json : OpenApiConstants.Yaml;
319319
}
320320

321321
private static async Task<Stream> GetStreamAsync(string url)

0 commit comments

Comments
 (0)