Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.4
-
Component/s: Zend_Http_Response
-
Labels:None
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))
Issue Links
| This issue duplicates: | ||||
| ZF-5520 | Failing to get location header from PHP script hosted on Windows IIS 6 |
|
|
|
Originally fixed by wilmoore, merged to 1.10 release branch in r22555.