diff --git a/tests/Bifrost.Web.Tests/HostTrustTests.cs b/tests/Bifrost.Web.Tests/HostTrustTests.cs index f1f0e8a..99f8676 100644 --- a/tests/Bifrost.Web.Tests/HostTrustTests.cs +++ b/tests/Bifrost.Web.Tests/HostTrustTests.cs @@ -115,6 +115,7 @@ public sealed class HostTrustTests : IClassFixture NullLoggerFactory.Instance, options); var context = new DefaultHttpContext(); + context.Request.Scheme = "http"; context.Connection.RemoteIpAddress = IPAddress.Parse(peer); context.Request.Headers["X-Forwarded-For"] = forwardedFor; if (forwardedProto is not null)