mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Fix wromg server detecting / improved Pleroma version numbers
This commit is contained in:
parent
34a0e71485
commit
de0ddfa0d8
2 changed files with 28 additions and 0 deletions
|
@ -133,6 +133,11 @@ class CurlResult
|
|||
{
|
||||
$this->isSuccess = ($this->returnCode >= 200 && $this->returnCode <= 299) || $this->errorNumber == 0;
|
||||
|
||||
// Everything higher than 299 is not an success
|
||||
if ($this->returnCode > 299) {
|
||||
$this->isSuccess = false;
|
||||
}
|
||||
|
||||
if (!$this->isSuccess) {
|
||||
Logger::log('error: ' . $this->url . ': ' . $this->returnCode . ' - ' . $this->error, Logger::INFO);
|
||||
Logger::log('debug: ' . print_r($this->info, true), Logger::DATA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue