ZF-11686: Zend_Controller_Action_Helper_Json doesn't send 'Content-Type: application/json' header
Description
The Action Helper returns Json encoded string but doesn't set the Content-Type Header.
The Action Helper returns Json encoded string but doesn't set the Content-Type Header.
Comments
Posted by Marco (p0l0) on 2011-08-19T10:35:04.000+0000
Here is a patch which would solve this issue:
Posted by Ramon Henrique Ornelas (ramon) on 2011-08-19T11:19:14.000+0000
@Marco The helper action Json uses view helper json where the header is assigned (see Zend_View_Helper_Json line 77).
Greetings Ramon
Posted by Marco (p0l0) on 2011-08-19T12:00:00.000+0000
@Ramon: Thanks I see that it now works under 1.11.10. I had testet it with Zend Version 1.10.6 were the Header isn't overwritten in the view helper, thats because I only compared the Action Helper.
Bug can be closed
Posted by Ramon Henrique Ornelas (ramon) on 2011-08-19T12:09:14.000+0000
@Marco True this was fix in 1.11.1 with ZF-10675.