diff --git a/src/Http/Routing/src/Matching/HostMatcherPolicy.cs b/src/Http/Routing/src/Matching/HostMatcherPolicy.cs index ff9244ad12..cb182af22a 100644 --- a/src/Http/Routing/src/Matching/HostMatcherPolicy.cs +++ b/src/Http/Routing/src/Matching/HostMatcherPolicy.cs @@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Routing.Matching { /// - /// An that implements filtering and selection by + /// A that implements filtering and selection by /// the host header of a request. /// public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy @@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Routing.Matching for (var j = 0; j < hosts.Count; j++) { var host = hosts[j].AsSpan(); - var port = "".AsSpan(); + var port = ReadOnlySpan.Empty; // Split into host and port var pivot = host.IndexOf(":");