diff --git a/SpotifyAPI.Web/SpotifyWebClient.cs b/SpotifyAPI.Web/SpotifyWebClient.cs index 400400f0..4812bceb 100644 --- a/SpotifyAPI.Web/SpotifyWebClient.cs +++ b/SpotifyAPI.Web/SpotifyWebClient.cs @@ -166,12 +166,9 @@ namespace SpotifyAPI.Web private void AddHeaders(Dictionary headers) { + _client.DefaultRequestHeaders.Clear(); foreach (KeyValuePair headerPair in headers) { - if (_client.DefaultRequestHeaders.Contains(headerPair.Key)) - { - _client.DefaultRequestHeaders.Remove(headerPair.Key); - } _client.DefaultRequestHeaders.TryAddWithoutValidation(headerPair.Key, headerPair.Value); } }