dhruv9b opened a new pull request, #2180:
URL: https://github.com/apache/maven-resolver/pull/2180

   ## Description
   
   OpenJDK fixed the `Expect: 100-continue` issue tracked by JDK-8286171 in JDK 
17.0.17.
   
   Maven Resolver currently disables `Expect-Continue` for all Java versions 
below 20 based only on the Java feature version. As a result, `Expect-Continue` 
remains disabled on JDK 17.0.17 and later, even though the underlying issue has 
been fixed.
   
   This change makes the Java version check version-aware by using 
`Runtime.Version`:
   
   * JDK 17.0.0–17.0.16: `Expect-Continue` disabled
   * JDK 17.0.17+: `Expect-Continue` enabled
   * JDK 18.x–19.x: `Expect-Continue` disabled
   * JDK 20+: `Expect-Continue` enabled
   
   A regression test was added to verify the version-specific behavior and to 
ensure that an explicitly enabled `Expect: 100-continue` header is sent on JDK 
17.0.17+.
   
   The version matrix test covers JDK 11, 17.0.16, 17.0.17, 17.0.18, 18, 19, 
20, and 21.
   
   The regression test fails with the previous implementation on JDK 17.0.17 
and passes with this change.
   - [ ] I hereby declare this contribution to be licensed under the Apache 
License Version 2.0, January 2004
   - [ ] I hereby declare that I have filed an Apache Individual Contributor 
License Agreement.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to