File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/TestableHttpClient.Tests/Utils Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,12 @@ public void Format_SimpleGetRequest_CreatesExpectedString(string version)
4343 }
4444
4545 [ Fact ]
46- public void Format_SimplePostRequestWithHttpVersion2_CreatesExpectedString ( )
46+ public void Format_SimplePostRequestWithHeadersAndBody_CreatesExpectedString ( )
4747 {
48- using HttpRequestMessage request = new ( HttpMethod . Post , "https://example.com" ) ;
48+ using HttpRequestMessage request = new ( HttpMethod . Post , "https://example.com" )
49+ {
50+ Version = HttpVersion . Version11
51+ } ;
4952 request . Content = new StringContent ( "Hello, World!" ) ;
5053 request . Content . Headers . ContentLength = 13 ;
5154 string result = HttpRequestMessageFormatter . Format ( request , HttpRequestMessageFormatOptions . All ) ;
You can’t perform that action at this time.
0 commit comments