Remove leading dot check for cookie domain (#39781)
authorNatalia Kondratyeva <knatalia@microsoft.com>
Fri, 24 Jul 2020 07:18:00 +0000 (10:18 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 07:18:00 +0000 (10:18 +0300)
commit3ff193b1f90b4474ec37406cae1e2e504c2df613
treef87c8ef249960ee2ecddaac4983e8c25a0fc11a0
parente65c3091bd2c3a38e465c40c9e8e38202584a449
Remove leading dot check for cookie domain (#39781)

Minimal fix for domain-related cookie issues of #26141

To fully comply with RFC 6265, one should remove deprecated cookie
properties, such as Version, from public API. So only the stated
issues with leading dot were addressed now.

Also note that the leading dot was not stripped from the domain even
though RFC 6265 proposed it. This behavior was chosen because
browsers like Chrome and Edge also don't strip the leading dot.
src/libraries/System.Net.Primitives/src/System/Net/Cookie.cs
src/libraries/System.Net.Primitives/tests/FunctionalTests/CookieTest/CookieContainerTest.cs
src/libraries/System.Net.Primitives/tests/UnitTests/CookieContainerTest.cs