Skip to content

Conversation

@NadChel
Copy link
Contributor

I added a removal of Content-Type header in org.springframework.http.codec.EncoderHttpMessageWriter if the body Publisher is empty

Added a couple of tests to assert on the writer's correct behavior when dealing with empty body Publishers

The GH-32620 issue is a blocker for a Spring Cloud Gateway issue I've been researching

@NadChel
Copy link
ContributorAuthor

Is there something else I need to do to have it approved and merged?

@sbrannensbrannen changed the title Ensured removal of Content-Type header if body Publisher is empty. Fixes GH-32620Ensure removal of Content-Type header if body Publisher is emptyApr 16, 2024
@sbrannensbrannen added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Apr 16, 2024
@poutsmapoutsma self-assigned this Apr 22, 2024
@poutsmapoutsma added this to the 6.2.0-M2 milestone Apr 23, 2024
@poutsmapoutsma added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 23, 2024
poutsma added a commit that referenced this pull request Apr 23, 2024
poutsma added a commit that referenced this pull request Apr 23, 2024
…_type_if_no_body * gh-32622: Polishing external contribution Remove Content-Type when body is empty
@poutsma
Copy link
Contributor

Thank you for submitting a PR. This will be in the upcoming 6.2M2 milestone.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@NadChel@poutsma@sbrannen@spring-projects-issues