Skip to content

Commit f3c9141

Browse files
authored
Update src/Microsoft.OpenApi.Readers/V2/OpenApiDocumentDeserializer.cs
1 parent 05512ec commit f3c9141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Readers/V2/OpenApiDocumentDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private static string BuildUrl(string scheme, string host, string basePath)
213213

214214
int? port = null;
215215

216-
if (!String.IsNullOrEmpty(host) && host.Contains(':'))
216+
if (!String.IsNullOrEmpty(host) && host.Contains(':', StringComparison.OrdinalIgnoreCase))
217217
{
218218
var pieces = host.Split(':');
219219
host = pieces.First();

0 commit comments

Comments
 (0)