[release/6.0-rc2] Fix behavior ObjectCollection for single item contains (#59557)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 24 Sep 2021 22:03:27 +0000 (15:03 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 22:03:27 +0000 (15:03 -0700)
commit16397a03a6f48c8c1f3d32233807106eac1be532
tree2148fd200e0e1949b32db73878379f1d91cc2457
parent9b3cad0fec314fcb5480ecf361c8689a23c2bac4
[release/6.0-rc2] Fix behavior ObjectCollection for single item contains (#59557)

* Fix behavior ObjectCollection for single item contains

* Address PR feedback

Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
src/libraries/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs
src/libraries/System.Net.Http/tests/UnitTests/Headers/ObjectCollectionTest.cs