Project

General

Profile

Actions

Bug #82537

closed

Minor typo in default Content-Type HTTP-header of TYPO3\CMS\Core\Http\HtmlResponse and TYPO3\CMS\Core\Http\JsonResponse

Added by Stephan Jorek about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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 # <--- :

        // 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'
        }

This has been verified by me for commit 2a6690b94982de4b07e7130865096c0136e7110a.


Files

Actions

Also available in: Atom PDF