The AJAX functionality in the backend does not work anymore, thus reverting to the original state, finding a proper solution to solve the problem.
This reverts commit
8e9a766da84cba945767423c722ace454885041a.
Change-Id: Ie0b563c5973a0ea4142c310fbba304c53a114840
Reviewed-on: http://review.typo3.org/42059
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
*/
protected function sendResponse() {
if ($this->response instanceof \Psr\Http\Message\ResponseInterface) {
- // Send the response headers only if no header was sent before
- if (!headers_sent() && empty(headers_list())) {
+ if (!headers_sent()) {
foreach ($this->response->getHeaders() as $name => $values) {
header($name . ': ' . implode(', ', $values), FALSE);
}
- // Send the response type
+ // send the response type
header('HTTP/' . $this->response->getProtocolVersion() . ' ' . $this->response->getStatusCode() . ' ' . $this->response->getReasonPhrase());
}
echo $this->response->getBody()->__toString();