mirror of
https://github.com/bitwarden/server
synced 2026-01-08 11:33:26 +00:00
Use a header to track seeded data. This has benefits client side in simplicity and allows us to track entities added during a test, as long as they include the play id header.
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Bit.SharedWeb.Utilities;
|
||||
|
||||
public sealed class PlayIdMiddleware(RequestDelegate next)
|
||||
{
|
||||
public Task Invoke(HttpContext context, IPlayIdService playIdService)
|
||||
public Task Invoke(HttpContext context, PlayIdService playIdService)
|
||||
{
|
||||
if (context.Request.Headers.TryGetValue("x-play-id", out var playId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user