[BUGFIX] Respect HTTP headers from JsonView 39/34839/8
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 30 Nov 2014 22:16:46 +0000 (23:16 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sun, 18 Jan 2015 13:22:08 +0000 (14:22 +0100)
commit6c0191f47afe5f14cb15c115f572c8ffae6dfbf9
treeea8036399965388f5c4e693c0204abe73e0bd280
parent860faf992bd69e12b864650283d639258dc48eef
[BUGFIX] Respect HTTP headers from JsonView

When rendering the json view, headers are set to the response
which are then sent by Extbase after the plugin is rendered.

However this takes place before the core (TypoScriptFrontendController)
sends the same header unless deactivated.

This change adds a new property to TypoScriptFrontendController to
be able for plugins to set the content type header to be sent.

Additionally the JsonView now makes use of this.

This is a temporary solution unless we have a proper
request/response model for frontend rendering.

Releases: master
Resolves: #60624
Change-Id: I29fa92e21495864a3c7777bbb0bc8e375267850e
Reviewed-on: http://review.typo3.org/34839
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extbase/Classes/Mvc/View/JsonView.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php