ZF-10675: Zend_View_Helper_Json does not enforce replace_header

Issue Type: Bug Created: 2010-11-12T07:18:17.000+0000 Last Updated: 2011-08-19T12:09:56.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Michael Wallner (iworks) Assignee: Jan Pieper (jpieper) Tags: - Zend_View

Related issues: - ZF-11686



Zend_View_Helper_Json calls

Zend_Controller_Front::getInstance() ->getResponse() ->setHeader("Conten-type", "application/json")

without the 3rd argument enforced to TRUE, which might lead to duplicate Content-type headers, which in turn might cripple (500) Apache httpd + fastcgi:

FastCGI: comm with server "/srv/http/cgi-bin/virtual-php-fastcgi" aborted: error parsing headers: duplicate header 'Content-Type'


Posted by Jan Pieper (jpieper) on 2010-11-18T23:44:15.000+0000

Fixed in r23390.

Posted by Ramon Henrique Ornelas (ramon) on 2010-11-28T05:11:55.000+0000

Merged to branch release 1.11 r23451.

Posted by Ramon Henrique Ornelas (ramon) on 2010-11-28T05:13:27.000+0000

Assigned fix version.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.