Specify StringComparison when calling string.StartsWith (#1484)

StartsWith does a culture-sensitive comparison by default. An ordinal
comparison makes more sense here.
This commit is contained in:
Justin Van Patten 2017-03-11 22:31:42 -08:00 committed by David Fowler
parent f479720d5a
commit a26f96237b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel
{
get
{
return Host.StartsWith(Constants.UnixPipeHostPrefix);
return Host.StartsWith(Constants.UnixPipeHostPrefix, StringComparison.Ordinal);
}
}