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:
parent
f479720d5a
commit
a26f96237b
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel
|
|||
{
|
||||
get
|
||||
{
|
||||
return Host.StartsWith(Constants.UnixPipeHostPrefix);
|
||||
return Host.StartsWith(Constants.UnixPipeHostPrefix, StringComparison.Ordinal);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue