Skip to content

Commit c4280c9

Browse files
committed
Fix test
1 parent 8cfa2e1 commit c4280c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: test/http-client-tests/src/main/java/software/amazon/awssdk/http/SdkHttpClientDefaultTestSuite.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ private void validateResponse(HttpExecuteResponse response,
243243
.withHeader("Content-Length", equalTo("4"));
244244
} else {
245245
patternBuilder.withRequestBody(absent());
246-
if (method == SdkHttpMethod.PATCH || method == SdkHttpMethod.POST || method == SdkHttpMethod.PUT) {
247-
patternBuilder.withHeader("Content-Length", equalTo("0"));
248-
} else {
246+
if (method != SdkHttpMethod.PATCH && method != SdkHttpMethod.POST && method != SdkHttpMethod.PUT) {
249247
patternBuilder.withoutHeader("Content-Length");
250248
}
251249
}

0 commit comments

Comments
 (0)