diff --git a/src/Format/NoBody.php b/src/Format/NoBody.php index 0da7f7f..869d18a 100644 --- a/src/Format/NoBody.php +++ b/src/Format/NoBody.php @@ -35,7 +35,7 @@ class NoBody implements IFormat return $this->response->withBody(new Stream('[object]')); } if (is_array($result)) { - return $this->response->withContentType(ContentType::JSON)->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE))); + return $this->response->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE))); } else { return $this->response->withBody(new Stream((string)$result)); }