mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
c69381c33e
This reverts commit 356a367eb5d05bea3dfa2edaeabc52a2496b93b2. We can't use headers_sent() to determine an accurate content length, since PHP defaults to buffering a couple of bytes even without ob_start() (see "output_buffering" setting). This makes the patch harmful, since it breaks any responses relying on more structure data, like removing closing brackets from JSON. Which in turn breaks the CMS in horrible ways (see #8010). See #7574 for context.