Browse Source

getStringBody -> getBody

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

+ 1 - 1
src/Http/Response.php

@@ -510,7 +510,7 @@ class Response implements ResponseInterface
             $this->_file = null;
             $this->_fileRange = [];
         } else {
-            $this->_sendContent($this->getStringBody());
+            $this->_sendContent($this->getBody());
         }
 
         if (function_exists('fastcgi_finish_request')) {

+ 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->getStringBody();
+            return $response->getBody();
         }
 
         return $response->send();