Browse Source

Revert and enable

Mischa ter Smitten 5 years ago
parent
commit
dfbf86fd44
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Http/ResponseTransformer.php
  2. 1 1
      src/Routing/Dispatcher.php

+ 1 - 1
src/Http/ResponseTransformer.php

@@ -251,7 +251,7 @@ class ResponseTransformer
     protected static function getStream($response)
     {
         $stream = 'php://memory';
-        $body = $response->getBody();
+        $body = $response->body();
         if (is_string($body) && strlen($body)) {
             $stream = new Stream('php://memory', 'wb');
             $stream->write($body);

+ 1 - 1
src/Routing/Dispatcher.php

@@ -65,7 +65,7 @@ class Dispatcher
         $actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters);
         $response = $actionDispatcher->dispatch($request, $response);
         if ($request->getParam('return', null) !== null) {
-            return $response->body();
+            return $response->getBody();
         }
 
         return $response->send();