mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
A redirect is not an error
This commit is contained in:
parent
de0ddfa0d8
commit
0937c66484
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ 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) {
|
||||
// Everything higher or equal 400 is not a success
|
||||
if ($this->returnCode >= 400) {
|
||||
$this->isSuccess = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue