From 3f8b34f00aa3c166b63b043f0e943cbcc9597f77 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 8 Oct 2017 13:35:02 +0200 Subject: [PATCH] Fixed response key bug --- Message/ResponseAbstract.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Message/ResponseAbstract.php b/Message/ResponseAbstract.php index 1623b5eb3..a721adc5b 100644 --- a/Message/ResponseAbstract.php +++ b/Message/ResponseAbstract.php @@ -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; } /**