diff --git a/lib/XRay/Fetcher.php b/lib/XRay/Fetcher.php index 2ff3e4a..93a9891 100644 --- a/lib/XRay/Fetcher.php +++ b/lib/XRay/Fetcher.php @@ -99,7 +99,7 @@ class Fetcher { return [ 'error' => 'invalid_content', 'error_description' => 'The server did not return a recognized content type', - 'content_type' => $result['headers']['Content-Type'] ?? null, + 'content_type' => isset($result['headers']['Content-Type']) ? $result['headers']['Content-Type'] : null, 'url' => $result['url'], 'code' => $result['code'] ];