Zend ContextSwitch action helper for XML sets wrong Content-Type header
-
30-12-2020 - |
Question
Zend default ContextSwitch Action Helper for XML wrongly sets the Content-Type header to "application/xml" while the documentation claims it sets it to "test/xml".
Did anybody else bump into this. Is it a bug ? Thanks.
Solution
That's definitely a documentation bug.
From the code
'xml' => array(
'suffix' => 'xml',
'headers' => array('Content-Type' => 'application/xml'),
)
Update: Bug filed - http://framework.zend.com/issues/browse/ZF-11406
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow