]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/GuzzleResponse.php
Merge remote-tracking branch 'upstream/develop' into user-contact
[friendica.git] / src / Network / GuzzleResponse.php
index b1bbaa96536dd9b091ccf3cbb1a66f2d5bb6f45a..3b41f6f6540f18d1838eed48020b6cd12eebafc9 100644 (file)
@@ -68,7 +68,7 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
                }
 
                if (!$this->isSuccess) {
-                       Logger::notice('http error', ['url' => $this->url, 'code' => $this->getReturnCode(), 'error'  => $this->error, 'callstack' => System::callstack(20)]);
+                       Logger::notice('http error', ['url' => $this->url, 'code' => $this->getReturnCode(), 'error' => $this->error, 'callstack' => System::callstack(20)]);
                        Logger::debug('debug', ['info' => $this->getHeaders()]);
                }
 
@@ -145,4 +145,10 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
        {
                return $this->isTimeout;
        }
+
+       /// @todo - fix mismatching use of "getBody()" as string here and parent "getBody()" as streaminterface
+       public function getBody(): string
+       {
+               return (string) parent::getBody();
+       }
 }