ZF-10577: Zend_Controller_Request_Http::getHeader() returns false with empty header value
Description
Using the Zend_Controller_Request_Http::getHeader($headerName) returns "false" if the given $headerName will be existing with an empty value.
Better solution: if (function_exists('apache_request_headers')) { $headers = apache_request_headers(); if ({color:red}isset{color}($headers[$header])) { return $headers[$header]; } [..]
Comments
Posted by Marc Hodgins (mjh_ca) on 2010-10-24T17:37:44.000+0000
Patch with unit test attached.
Posted by Matthew Weier O'Phinney (matthew) on 2010-10-25T07:16:50.000+0000
Patch applied to trunk and 1.11 release branch -- thanks!