ZF-6038: Ability to remove single http header from response

Issue Type: New Feature Created: 2009-03-15T14:11:32.000+0000 Last Updated: 2009-12-21T23:21:53.000+0000 Status: Resolved Fix version(s): Reporter: Danila V. (dvershinin) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments: - ZF-6038.patch



If would be nice to have ability to remove separate headers by their respective names, i.e. $this->getResponse()->clearHeader('Pragma')


Posted by Wil Moore III (wilmoore) (wilmoore) on 2009-12-18T04:19:25.000+0000

This patch adds two new methods to Zend_Controller_Response_Abstract with associated passing tests:

  1. clearHeader + testClearHeader
  2. clearRawHeader + testClearRawHeader

Please review -- if anything looks problematic please let me know.

Posted by Wil Moore III (wilmoore) (wilmoore) on 2009-12-18T09:12:40.000+0000

Updated file extension of patch per…

Posted by Wil Moore III (wilmoore) (wilmoore) on 2009-12-18T09:13:34.000+0000

Assigning to component lead per:…

Posted by Wil Moore III (wilmoore) (wilmoore) on 2009-12-18T11:15:03.000+0000

Revised patch removing issue number from test name per note from ralphschindler on

Posted by Matthew Weier O'Phinney (matthew) on 2009-12-18T13:46:38.000+0000

Patch applied to trunk; will release with 1.10 (new features)

Have you found an issue?

See the Overview section for more details.


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

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