diff --git a/lib/contents.php b/lib/contents.php index 419432df..b6b74539 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -191,7 +191,7 @@ function getContents( throw new CloudFlareException($exceptionMessage, $response['code']); } } - throw new HttpException(trim($exceptionMessage), $result['code']); + throw new HttpException(trim($exceptionMessage), $response['code']); } if ($returnFull === true) { // For legacy reasons, use content instead of body