Bug #82537
Updated by Stephan Jorek about 7 years ago
Hi folks,
there is a case-related typo in the following two files:
TYPO3\CMS\Core\Http\HtmlResponse
TYPO3\CMS\Core\Http\JsonResponse
In both files it's the same mistake - see my embedded comment starting with @# <---@ :
<pre><code class="php">
// Ensure that text/html header is set, if Content-Type was not set before
if (!$this->hasHeader('Content-Type')) {
$this->headers['Content-Type'][] = 'text/html; charset=utf-8';
$this->lowercasedHeaderNames['content-type'] = 'Content-type'; # <--- It must be 'Content-Type' with capital 'T' in the trailing 'Type'
}
</code></pre>
This has been verified by me for commit 2a6690b94982de4b07e7130865096c0136e7110a.