[TYPO3-core] RFC: #11063: wrong content-length header breaks frontend in case of proxy-usage

Martin Kutschker masi-no at spam-typo3.org
Mon May 11 14:55:20 CEST 2009


Dmitry Dulepov schrieb:
> Hi!
> 
> georg kuehnberger wrote:
>> Problem:
>> class.tslib_fe.php, function processOutput() calculates the
>> content-length wrongly in case of enabled debug. this leads proxies to
>> not deliver the complete page, but cut it off in the middle of nowhere.
>>
>> Solution:
>> In case debug is activated, TYPO3 should not send content-length at all;
>> proxies will behave nice then and deliver the complete page.
> 
> This solution will work but there is a better one: create the header later (after the debug, at the end of index_ts.php). It will allow content-length header for any kind of pages, so this will not be necessary:

Probably. But unless someone is willing to dig into the code this patch
at least fixes the bug. So I guess it's better to apply it and think
about doing it better for trunk.

Masi


More information about the TYPO3-team-core mailing list