ZF-9834: Zend_Http_Response does not extract some headers correctly
Description
Zend_Http_Response::extractHeaders does not recognize headers like "Location:http://example.com" i.e. without a space after the ":".
To fix it, please change line 510, Zend/Http/Response.php from
if (preg_match("|^([\w-]+):\s+(.+)|", $line, $m))
to
if (preg_match("|^([\w-]+):\s*(.+)|", $line, $m))
Comments
Posted by Shahar Evron (shahar) on 2010-07-13T09:08:55.000+0000
Originally fixed by wilmoore, merged to 1.10 release branch in r22555.