mirror of
https://github.com/friendica/friendica
synced 2024-11-14 04:22:55 +00:00
Revert "Use CurlResult for failed HTTPRequests (legacy usage)"
This reverts commit 1a42f35a
This commit is contained in:
parent
2e8ad098b9
commit
9536a0e39c
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class HTTPRequest implements IHTTPRequest
|
||||||
if ($exception->hasResponse()) {
|
if ($exception->hasResponse()) {
|
||||||
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
|
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
|
||||||
} else {
|
} else {
|
||||||
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
|
return new GuzzleResponse(null, $url, $exception->getCode(), $exception->getMessage());
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
$this->profiler->saveTimestamp($stamp1, 'network');
|
$this->profiler->saveTimestamp($stamp1, 'network');
|
||||||
|
|
Loading…
Reference in a new issue