Skip to content

[pull] main from spring-projects:main#19

Merged
pull[bot] merged 7 commits intoWill-well:mainfrom
spring-projects:main
Jun 2, 2025
Merged

[pull] main from spring-projects:main#19
pull[bot] merged 7 commits intoWill-well:mainfrom
spring-projects:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jun 2, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

rstoyanchev and others added 7 commits June 2, 2025 12:38
Prior to this commit, we would use the
`java.net.http.HttpRequest.Builder#method(String, BodyPublisher)` to
create HTTP requests for the JDK HttpClient. This method requires a
non-null body publisher; providing an empty publisher writes a
"Content-Length: 0" header to all requests.

As of Java 19, this behavior changes for `HttpRequest.Builder#GET` and
similar methods, where the body publisher is considered as null and no
"Content-Length" header is written.

This commit aligns with this behavior and favors dedicated HTTP methods
whenever available.`

Closes gh-34971
Closes gh-34980

Signed-off-by: Johannes Jank <johannes.wengert@googlemail.com>
@pull pull bot added the ⤵️ pull label Jun 2, 2025
@pull pull bot merged commit 45ba4ac into Will-well:main Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants