Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rnelson committed Oct 1, 2019
1 parent 85779ad commit 27b8401
Showing 1 changed file with 3 additions and 4 deletions.
@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;

namespace Libexec.AspnetCore.EnvironmentHeaders
Expand Down Expand Up @@ -43,8 +42,8 @@ public async Task InvokeAsync(HttpContext context)
private async Task HandleHeaderInjection(HttpContext context)
{
var headers = EnvironmentHeaders.BuildHeaderDictionary();
foreach (var pair in headers)
context.Response.Headers.Add(pair.Key, pair.Value);
foreach (var (key, value) in headers)
context.Response.Headers.Add(key, value);

await next(context);
}
Expand Down

0 comments on commit 27b8401

Please sign in to comment.