Skip to content

Commit

Permalink
remove lock
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Feb 1, 2023
1 parent 3ec9652 commit 87c8673
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,11 @@ public static async Task<Tuple<RecordEntry, byte[]>> CreateEntryAsync(HttpReques
entry.RequestUri = GetRequestUri(request).AbsoluteUri;
entry.RequestMethod = new RequestMethod(request.Method);

lock (request.Headers)
foreach (var header in request.Headers)
{
foreach (var header in request.Headers)
if (IncludeHeader(header.Key))
{
if (IncludeHeader(header.Key))
{
entry.Request.Headers.Add(header.Key, header.Value.ToArray());
}
entry.Request.Headers.Add(header.Key, header.Value.ToArray());
}
}

Expand Down

0 comments on commit 87c8673

Please sign in to comment.