We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3694a49 commit d6e67a4Copy full SHA for d6e67a4
clients/algoliasearch-client-csharp/algoliasearch/Http/HttpRequestHeadersExtensions.cs
@@ -1,4 +1,5 @@
1
using System.Collections.Generic;
2
+using System.Linq;
3
using System.Net.Http.Headers;
4
using Algolia.Search.Utils;
5
@@ -14,7 +15,7 @@ internal static class HttpRequestHeadersExtensions
14
15
/// <returns></returns>
16
internal static void Fill(this HttpRequestHeaders headers, IDictionary<string, string> dictionary)
17
{
- foreach (var header in dictionary)
18
+ foreach (var header in dictionary.ToList())
19
20
headers.TryAddWithoutValidation(header.Key, header.Value);
21
}
0 commit comments