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.

zend Action helper documentation

Was it helpful?

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
scroll top