https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e8ad09
)
Revert "Use CurlResult for failed HTTPRequests (legacy usage)"
author
Philipp
<admin@philipp.info>
Sun, 11 Oct 2020 21:25:51 +0000
(23:25 +0200)
committer
Philipp
<admin@philipp.info>
Sun, 11 Oct 2020 21:25:51 +0000
(23:25 +0200)
This reverts commit
1a42f35a
src/Network/HTTPRequest.php
patch
|
blob
|
history
diff --git
a/src/Network/HTTPRequest.php
b/src/Network/HTTPRequest.php
index
ffc095b
..
1ced5fc
100644
(file)
--- 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');