A redirect is not an error
This commit is contained in:
@@ -133,8 +133,8 @@ class CurlResult
|
|||||||
{
|
{
|
||||||
$this->isSuccess = ($this->returnCode >= 200 && $this->returnCode <= 299) || $this->errorNumber == 0;
|
$this->isSuccess = ($this->returnCode >= 200 && $this->returnCode <= 299) || $this->errorNumber == 0;
|
||||||
|
|
||||||
// Everything higher than 299 is not an success
|
// Everything higher or equal 400 is not a success
|
||||||
if ($this->returnCode > 299) {
|
if ($this->returnCode >= 400) {
|
||||||
$this->isSuccess = false;
|
$this->isSuccess = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user