#19715Content-length header is calculated incorrectly
Description
The method to calculate content length is incorrect. It does not take the following into account:
- admin panel
- debug() statements
- any other output outside of $TSFE->content
(issue imported from #M9972)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.