Fixed response key bug

This commit is contained in:
Dennis Eichhorn 2017-10-08 13:35:02 +02:00
parent 98d89c1af9
commit 3f8b34f00a

View File

@ -71,7 +71,9 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
*/
public function set($key, $response, bool $overwrite = true) /* : void */
{
$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite);
// This is not working since the key kontains :: from http://
//$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite);
$this->response[$key] = $response;
}
/**