Address Jimmys cool feedback

This commit is contained in:
Ryan Nowak 2019-04-16 10:38:24 -07:00 committed by Ryan Nowak
parent 84916223bb
commit 4f57a4af14
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Routing.Matching
{
/// <summary>
/// An <see cref="MatcherPolicy"/> that implements filtering and selection by
/// A <see cref="MatcherPolicy"/> that implements filtering and selection by
/// the host header of a request.
/// </summary>
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<char>.Empty;
// Split into host and port
var pivot = host.IndexOf(":");