]> git.mxchange.org Git - friendica.git/commitdiff
A redirect is not an error
authorMichael <heluecht@pirati.ca>
Mon, 12 Nov 2018 04:12:36 +0000 (04:12 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Nov 2018 04:12:36 +0000 (04:12 +0000)
src/Network/CurlResult.php

index 7bf9ad87dabc33c6036702f711dbfa755355efdd..dd98853ae888f052168863adf2d125429291c511 100644 (file)
@@ -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;
                }