diff --git a/.changes/next-release/feature-AWSSDKforJavav2-b18ecdd.json b/.changes/next-release/feature-AWSSDKforJavav2-b18ecdd.json new file mode 100644 index 000000000000..d73d207637e3 --- /dev/null +++ b/.changes/next-release/feature-AWSSDKforJavav2-b18ecdd.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Apache 5 HTTP Client", + "contributor": "", + "description": "Disable Expect 100-Continue by default in the Apache5 HTTP Client." +} diff --git a/http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java b/http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java index a07eb5f107c0..ef4780866f36 100644 --- a/http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java +++ b/http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java @@ -454,7 +454,8 @@ public interface Builder extends SdkHttpClient.Builder - * Note: When using the Apache HTTP client, the Apache client also independently adds the + * Note: When using the {@code ApacheHttpClient} (Apache 4), the Apache 4 client also independently adds the * {@code Expect: 100-continue} header by default via its own {@code expectContinueEnabled} setting. To fully - * suppress the header on the wire, you must also disable it on the Apache HTTP client builder using - * {@code ApacheHttpClient.builder().expectContinueEnabled(false)}. + * suppress the header on the wire, you must also disable it on the Apache4 HTTP client builder using + * {@code ApacheHttpClient.builder().expectContinueEnabled(false)}. This does NOT apply to the {@code Apache5HttpClient} + * which defaults {@code expectContinueEnabled} to false. * * @return True if the Expect: 100-continue header is enabled. * @see S3Configuration.Builder#expectContinueEnabled(Boolean)