Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit ef93484

Browse files
no closure with local functions
1 parent 3d29994 commit ef93484

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/SqlStreamStore.HAL.DevServer/DevServerStartup.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ public void Configure(IApplicationBuilder app) => app
4747

4848
private static MidFunc VaryAccept => (context, next) =>
4949
{
50-
Task Vary(object state)
50+
Task Vary()
5151
{
52-
var response = (HttpResponse) state;
53-
54-
response.Headers.AppendCommaSeparatedValues("Vary", "Accept");
52+
context.Response.Headers.AppendCommaSeparatedValues("Vary", "Accept");
5553

5654
return Task.CompletedTask;
5755
}
5856

59-
context.Response.OnStarting(Vary, context.Response);
57+
context.Response.OnStarting(Vary);
6058

6159
return next();
6260
};

0 commit comments

Comments
 (0)