From: Philipp Date: Sun, 11 Oct 2020 21:25:51 +0000 (+0200) Subject: Revert "Use CurlResult for failed HTTPRequests (legacy usage)" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9536a0e39c8dc41f474a3f0d8f077c62987909c6;p=friendica.git Revert "Use CurlResult for failed HTTPRequests (legacy usage)" This reverts commit 1a42f35a --- diff --git a/src/Network/HTTPRequest.php b/src/Network/HTTPRequest.php index ffc095b66a..1ced5fca76 100644 --- a/src/Network/HTTPRequest.php +++ b/src/Network/HTTPRequest.php @@ -206,7 +206,7 @@ class HTTPRequest implements IHTTPRequest if ($exception->hasResponse()) { return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage()); } else { - return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage()); + return new GuzzleResponse(null, $url, $exception->getCode(), $exception->getMessage()); } } finally { $this->profiler->saveTimestamp($stamp1, 'network');