Skip to content

Commit 4f57a4a

Browse files
Ryan Nowakrynowak
authored andcommitted
Address Jimmys cool feedback
1 parent 8491622 commit 4f57a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Routing/src/Matching/HostMatcherPolicy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Microsoft.AspNetCore.Routing.Matching
1111
{
1212
/// <summary>
13-
/// An <see cref="MatcherPolicy"/> that implements filtering and selection by
13+
/// A <see cref="MatcherPolicy"/> that implements filtering and selection by
1414
/// the host header of a request.
1515
/// </summary>
1616
public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
@@ -106,7 +106,7 @@ public Task ApplyAsync(HttpContext httpContext, EndpointSelectorContext context,
106106
for (var j = 0; j < hosts.Count; j++)
107107
{
108108
var host = hosts[j].AsSpan();
109-
var port = "".AsSpan();
109+
var port = ReadOnlySpan<char>.Empty;
110110

111111
// Split into host and port
112112
var pivot = host.IndexOf(":");

0 commit comments

Comments
 (0)