Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtansia committed Dec 5, 2024
1 parent 8cfa2e1 commit c4280c9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ private void validateResponse(HttpExecuteResponse response,
.withHeader("Content-Length", equalTo("4"));
} else {
patternBuilder.withRequestBody(absent());
if (method == SdkHttpMethod.PATCH || method == SdkHttpMethod.POST || method == SdkHttpMethod.PUT) {
patternBuilder.withHeader("Content-Length", equalTo("0"));
} else {
if (method != SdkHttpMethod.PATCH && method != SdkHttpMethod.POST && method != SdkHttpMethod.PUT) {
patternBuilder.withoutHeader("Content-Length");
}
}
Expand Down

0 comments on commit c4280c9

Please sign in to comment.