Issues

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

Originally fixed by wilmoore, merged to 1.10 release branch in r22555.