Allow cookies with spaces in the name (dotnet/corefx#36566)
authorPaito Anderson <pj.paito@gmail.com>
Sat, 13 Apr 2019 15:28:21 +0000 (11:28 -0400)
committerDavid Shulman <david.shulman@microsoft.com>
Sat, 13 Apr 2019 15:28:21 +0000 (08:28 -0700)
commitc525f506144ca10822fa0ee3ca5f28b9483710f3
tree4159ffd3128a5bb6eea9e823d1d74d3ebaebbab1
parent19d90b8a569d688efc305e0002d3677c2da839be
Allow cookies with spaces in the name (dotnet/corefx#36566)

* Allow cookies with spaces in the name

* Apply suggestions from code review

Co-Authored-By: PaitoAnderson <pj.paito@gmail.com>
* Added supporting HttpClient functional cookie test

* Updated UWP cookie class and added additional tests

* Prevent cookies with spaces at the start or end

* Forgot UWP

* Fix could allocate on trim

Co-Authored-By: Ben Adams <thundercat@illyriad.co.uk>
* Better cookie space start/end check

Co-Authored-By: Ben Adams <thundercat@illyriad.co.uk>
* Bring checks into line

Co-Authored-By: Ben Adams <thundercat@illyriad.co.uk>
* Skip test on .net framework

* Skip additional tests on .net framework

* Fix typo

Commit migrated from https://github.com/dotnet/corefx/commit/8a22438a1af870cdd04eaf798b155b8a1ab04cb4
src/libraries/System.Net.Http/src/uap/System/Net/cookie.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Cookies.cs
src/libraries/System.Net.HttpListener/tests/HttpListenerResponseTests.Cookies.cs
src/libraries/System.Net.Primitives/src/System/Net/Cookie.cs
src/libraries/System.Net.Primitives/tests/FunctionalTests/CookieTest.cs
src/libraries/System.Net.Primitives/tests/UnitTests/CookieContainerTest.cs