6 references to IsHostHeaderValid
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\Http1Connection.cs (2)
622
else if (!HttpUtilities.
IsHostHeaderValid
(hostText))
675
if (!HttpUtilities.
IsHostHeaderValid
(hostText))
Internal\Http2\Http2Stream.cs (1)
401
if (host.Count > 1 || !HttpUtilities.
IsHostHeaderValid
(hostText))
Internal\Http3\Http3Stream.cs (1)
1163
if (host.Count > 1 || !HttpUtilities.
IsHostHeaderValid
(hostText))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
HttpUtilitiesTest.cs (2)
175
Assert.True(HttpUtilities.
IsHostHeaderValid
(host));
229
Assert.False(HttpUtilities.
IsHostHeaderValid
(host));