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) {