]> git.mxchange.org Git - friendica.git/commitdiff
Remove unnecessary exception message (avoid log flooding)
authorPhilipp <admin@philipp.info>
Sat, 10 Oct 2020 19:50:36 +0000 (21:50 +0200)
committerPhilipp <admin@philipp.info>
Sat, 10 Oct 2020 21:11:30 +0000 (23:11 +0200)
src/Network/HTTPRequest.php

index 68cadee93d1b4bedf4b8bc58dfec787a132e0803..82eec80432f148a72ddb2adf0514337521b7891a 100644 (file)
@@ -205,9 +205,9 @@ class HTTPRequest implements IHTTPRequest
                } catch (TransferException $exception) {
                        if ($exception instanceof RequestException &&
                                $exception->hasResponse()) {
-                               return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
+                               return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), '');
                        } else {
-                               return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
+                               return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
                        }
                } finally {
                        $this->profiler->saveTimestamp($stamp1, 'network');