HostTrustTests: give the probe context an http scheme to start from

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 05:31:21 +02:00
commit da3e73ad4d

View file

@ -115,6 +115,7 @@ public sealed class HostTrustTests : IClassFixture<TestWebApplicationFactory>
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)