From 0937c66484adce8fc2339178fd12a80f4ce54c9f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 12 Nov 2018 04:12:36 +0000 Subject: [PATCH] A redirect is not an error --- src/Network/CurlResult.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Network/CurlResult.php b/src/Network/CurlResult.php index 7bf9ad87da..dd98853ae8 100644 --- a/src/Network/CurlResult.php +++ b/src/Network/CurlResult.php @@ -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; }