Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #35709 [HttpFoundation] fix not sending Content-Type header for 2…
…04 responses (Tobion) This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] fix not sending Content-Type header for 204 responses | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | | License | MIT | Doc PR | `$headers->remove('Content-Type')` did not actually work because PHP sends the Content-Type header based on the https://www.php.net/manual/en/ini.core.php#ini.default-mimetype ini setting anyway (which defaults to html). So we need to disable this ini for empty responses. Commits ------- 06f5a11 [HttpFoundation] fix not sending Content-Type header for 204 responses
- Loading branch information