silverstripe/sapphire — pull request #1153 by uniun (2013-02-02 12:19:33+00:00)
Title: Do not set Content-Length header if debug_profile is set

Do not set Content-Length header if debug_profile is set, because $this->body doesn't contain output from Profiler.
Browser will not read more bytes than the Content-Length value and we won't get Profiler debug information.