@@ -95,7 +95,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
9595 contentType: " application/json "
9696 )
9797 try await XCTAssertEqualStringifiedData ( body, testStructPrettyString)
98- XCTAssertEqual ( headerFields, [ . contentType: " application/json " ] )
98+ XCTAssertEqual ( headerFields, [ . contentType: " application/json " , . contentLength : " 23 " ] )
9999 }
100100
101101 func test_setOptionalRequestBodyAsJSON_codable_string( ) async throws {
@@ -106,7 +106,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
106106 contentType: " application/json "
107107 )
108108 try await XCTAssertEqualStringifiedData ( body, testQuotedString)
109- XCTAssertEqual ( headerFields, [ . contentType: " application/json " ] )
109+ XCTAssertEqual ( headerFields, [ . contentType: " application/json " , . contentLength : " 7 " ] )
110110 }
111111
112112 // | client | set | request body | JSON | required | setRequiredRequestBodyAsJSON |
@@ -118,7 +118,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
118118 contentType: " application/json "
119119 )
120120 try await XCTAssertEqualStringifiedData ( body, testStructPrettyString)
121- XCTAssertEqual ( headerFields, [ . contentType: " application/json " ] )
121+ XCTAssertEqual ( headerFields, [ . contentType: " application/json " , . contentLength : " 23 " ] )
122122 }
123123
124124 // | client | set | request body | urlEncodedForm | codable | optional | setRequiredRequestBodyAsURLEncodedForm |
@@ -136,7 +136,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
136136 }
137137
138138 try await XCTAssertEqualStringifiedData ( body, testStructURLFormString)
139- XCTAssertEqual ( headerFields, [ . contentType: " application/x-www-form-urlencoded " ] )
139+ XCTAssertEqual ( headerFields, [ . contentType: " application/x-www-form-urlencoded " , . contentLength : " 41 " ] )
140140 }
141141
142142 // | client | set | request body | urlEncodedForm | codable | required | setRequiredRequestBodyAsURLEncodedForm |
@@ -148,7 +148,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
148148 contentType: " application/x-www-form-urlencoded "
149149 )
150150 try await XCTAssertEqualStringifiedData ( body, testStructURLFormString)
151- XCTAssertEqual ( headerFields, [ . contentType: " application/x-www-form-urlencoded " ] )
151+ XCTAssertEqual ( headerFields, [ . contentType: " application/x-www-form-urlencoded " , . contentLength : " 41 " ] )
152152 }
153153
154154 // | client | set | request body | binary | optional | setOptionalRequestBodyAsBinary |
@@ -160,7 +160,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
160160 contentType: " application/octet-stream "
161161 )
162162 try await XCTAssertEqualStringifiedData ( body, testString)
163- XCTAssertEqual ( headerFields, [ . contentType: " application/octet-stream " ] )
163+ XCTAssertEqual ( headerFields, [ . contentType: " application/octet-stream " , . contentLength : " 5 " ] )
164164 }
165165
166166 // | client | set | request body | binary | required | setRequiredRequestBodyAsBinary |
@@ -172,7 +172,7 @@ final class Test_ClientConverterExtensions: Test_Runtime {
172172 contentType: " application/octet-stream "
173173 )
174174 try await XCTAssertEqualStringifiedData ( body, testString)
175- XCTAssertEqual ( headerFields, [ . contentType: " application/octet-stream " ] )
175+ XCTAssertEqual ( headerFields, [ . contentType: " application/octet-stream " , . contentLength : " 5 " ] )
176176 }
177177
178178 // | client | set | request body | multipart | required | setRequiredRequestBodyAsMultipart |
0 commit comments