FormUrlEncodedContent - make key non Nullable (#40267)
authorJan Jahoda <jajahoda@microsoft.com>
Wed, 12 Aug 2020 13:35:55 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 13:35:55 +0000 (15:35 +0200)
commitb977407c9ec8cd7f87ea9bbab8fb69ad45a747e1
treee17d1562f1ee48a5fc2d57f43c24803615bc8b13
parent66619ad7d8587555acccf5c5d083446342456429
FormUrlEncodedContent - make key non Nullable (#40267)

As described in #38494, it is not easy to use Dictionary to create FormUrlEncodedContent instance.

I revisited the code and it seems to me we shouldn't support nullable keys. Instead of null key we should use empty string.
src/libraries/System.Net.Http/src/System/Net/Http/FormUrlEncodedContent.cs