use the name of the header when throwing exception for invalid chars (#66250)
authorBadre BSAILA <54767641+pedrobsaila@users.noreply.github.com>
Tue, 8 Mar 2022 16:15:18 +0000 (17:15 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Mar 2022 16:15:18 +0000 (17:15 +0100)
commitfa5dcda23c681031b5d2bd68482702baef80b836
tree77140e6106a6a545400ff71c357d931600057ea7
parent8fe2d2b0bbb7bec841c97372528531c071b29c16
use the name of the header when throwing exception for invalid chars (#66250)

* use the name of the header when throwing exception for invalid chars

* delete VS code cleanups

* delete VS code cleanups 2

* add suggested changes 1

* delete VS code cleanups 3

* delete VS code cleanups 4

* delete VS code cleanups 5
src/libraries/Common/src/System/Net/HttpValidationHelpers.cs
src/libraries/System.Net.Http/src/Resources/Strings.resx
src/libraries/System.Net.Http/src/System/Net/Http/Headers/HttpHeaders.cs
src/libraries/System.Net.Http/tests/UnitTests/Headers/HttpHeadersTest.cs
src/libraries/System.Net.WebHeaderCollection/src/Resources/Strings.resx
src/libraries/System.Net.WebHeaderCollection/tests/WebHeaderCollectionTest.cs