Address Jimmys cool feedback
This commit is contained in:
parent
84916223bb
commit
4f57a4af14
|
|
@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Http;
|
||||||
namespace Microsoft.AspNetCore.Routing.Matching
|
namespace Microsoft.AspNetCore.Routing.Matching
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <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.
|
/// the host header of a request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
|
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++)
|
for (var j = 0; j < hosts.Count; j++)
|
||||||
{
|
{
|
||||||
var host = hosts[j].AsSpan();
|
var host = hosts[j].AsSpan();
|
||||||
var port = "".AsSpan();
|
var port = ReadOnlySpan<char>.Empty;
|
||||||
|
|
||||||
// Split into host and port
|
// Split into host and port
|
||||||
var pivot = host.IndexOf(":");
|
var pivot = host.IndexOf(":");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue