Commit Graph
6 Commits
Author SHA1 Message Date
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Stephen Toub e71767ffb2 Enable HTTP/2 in SocketsHttpHandler via HttpRequestMessage.Version (dotnet/corefx#37234)
We now respect the version: if it's 1.1, we use 1.1, and if it's 2.0, we try to use HTTP/2.  At the same time, the default for HttpRequestMessage.Version goes back to 1.1, so to use HTTP/2, you opt-in by setting the version explicitly to 2.0.

Commit migrated from https://github.com/dotnet/corefx/commit/d69d441dfb0710c2a34155c7c4745db357b14c96
2019-05-02 00:15:28 -04:00
Tomas Weinfurt bb20d2572d add test for lower casing header name logic (dotnet/corefx#36708)
* add test for 35164

* update SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http2

* fix uwp tests

* change port from 123 to 443


Commit migrated from https://github.com/dotnet/corefx/commit/4e3b46c22cec88a1f0deaa2f594634e5553412e1
2019-04-15 15:15:32 -07:00
Paito AndersonandBen Adams c525f50614 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 <[email protected]>

* 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 <[email protected]>

* Better cookie space start/end check

Co-Authored-By: Ben Adams <[email protected]>

* Bring checks into line

Co-Authored-By: Ben Adams <[email protected]>

* Skip test on .net framework

* Skip additional tests on .net framework

* Fix typo


Commit migrated from https://github.com/dotnet/corefx/commit/8a22438a1af870cdd04eaf798b155b8a1ab04cb4
2019-04-13 08:28:21 -07:00
Tomas Weinfurt 89884400c0 handle multi-valued headers correctly (dotnet/corefx#35202)
* handle multi-valued headers correctly

* feedback from review

* enable SendAsync_UserAgent_CorrectlyWritten test for HTTP/2

* fix Cookie tests

* feedback from review and test updates

* udpdates from review

* fix itteration

* feedback from review

* remove Streamreader from LoopbackServer

* fix System.Net.WebSockets.Client tests

* feedback from review

* fix tests built for netstandard

* fix one more test

* feedback from review

* feedback from review


Commit migrated from https://github.com/dotnet/corefx/commit/85cec01822bc70fbc45a25001997b0c1e71b1d22
2019-04-01 23:06:34 -07:00
Geoff Kizer 20be2ff6d4 rename HttpCookieProtocolTests => HttpClientHandlerTest.Cookies
Commit migrated from https://github.com/dotnet/corefx/commit/47e35192ff1f830b27e2ed5fa14d7d7645a27e95
2019-02-07 17:06:48 -08:00