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:
parent
5093ba81aa
commit
da3e73ad4d
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue