Project

General

Profile

Bug #82537 ยป bugfix-for-content-type-http-header-typo-in-html-and-json-response-classes.diff

Patch generated with "git diff" to fix this issue - Stephan Jorek, 2017-09-21 16:53

View differences:

typo3/sysext/core/Classes/Http/HtmlResponse.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';
$this->lowercasedHeaderNames['content-type'] = 'Content-Type';
}
}
}
typo3/sysext/core/Classes/Http/JsonResponse.php
// Ensure that application/json header is set, if Content-Type was not set before
if (!$this->hasHeader('Content-Type')) {
$this->headers['Content-Type'][] = 'application/json; charset=utf-8';
$this->lowercasedHeaderNames['content-type'] = 'Content-type';
$this->lowercasedHeaderNames['content-type'] = 'Content-Type';
}
}
    (1-1/1)