mirror of
https://github.com/bitwarden/server
synced 2026-01-02 00:23:40 +00:00
fix(auth-validator): [PM-22975] Client Version Validator - misc changes, trying to get things to work
This commit is contained in:
@@ -23,6 +23,9 @@ public static class WebApplicationFactoryExtensions
|
||||
// it runs after this so it will take precedence.
|
||||
httpContext.Connection.RemoteIpAddress = IPAddress.Parse(FactoryConstants.WhitelistedIp);
|
||||
|
||||
// Ensure response body is bufferable and seekable for tests to read later
|
||||
httpContext.Response.Body = new MemoryStream();
|
||||
|
||||
httpContext.Request.Path = new PathString(requestUri);
|
||||
httpContext.Request.Method = method.Method;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user