diff --git a/src/Correlate.Core/Http/Extensions/HeaderDictionaryExtensions.cs b/src/Correlate.Core/Http/Extensions/HeaderDictionaryExtensions.cs index 1917d9a..418321f 100644 --- a/src/Correlate.Core/Http/Extensions/HeaderDictionaryExtensions.cs +++ b/src/Correlate.Core/Http/Extensions/HeaderDictionaryExtensions.cs @@ -11,7 +11,7 @@ internal static class HeaderDictionaryExtensions throw new ArgumentNullException(nameof(acceptedHeaders)); } - if (!acceptedHeaders.Any()) + if (acceptedHeaders.Count == 0) { return new KeyValuePair(CorrelationHttpHeaders.CorrelationId, null); }