Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7.0
-
Component/s: Zend_Http_Client
-
Labels:None
Description
Add a cookie using the setHeaders() function, then add another cookie using setCookie() - they end up being a single value
Reproduction code:
<?php require_once 'Zend/Http/Client.php'; $client = new Zend_Http_Client(); $client->setHeaders(array('cookie' => 'are you')); $client->setCookie('funky', 'monkey'); echo $client->getHeader('cookie'); // will output "are youfunky=monkey; " instead of "are you; funky=monkey; "
Fixed in revision 12425. Added a check if cookie seperator is present in the string, if not, add it.