From a5cd9cb17c9c467a8a6428cadd6582343598cf04 Mon Sep 17 00:00:00 2001 From: Rat1o <32591910+Rat1o@users.noreply.github.com> Date: Sun, 13 Oct 2019 22:07:52 +0100 Subject: [PATCH] Update S3.php fix for getObjectInfo bug --- S3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S3.php b/S3.php index 60d08ae5..ae4c9ef0 100644 --- a/S3.php +++ b/S3.php @@ -863,7 +863,7 @@ public static function getObjectInfo($bucket, $uri, $returnInfo = true) { $rest = new S3Request('HEAD', $bucket, $uri, self::$endpoint); $rest = $rest->getResponse(); - if ($rest->error === false && ($rest->code !== 200 && $rest->code !== 404)) + if ($rest->error === false && ($rest->code !== 200 && $rest->code !== 403 && $rest->code !== 404)) $rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status'); if ($rest->error !== false) {