Browse Source

fix for old php

pull/78/head v1.6.0
Aaron Parecki 6 years ago
parent
commit
c9371788c5
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/XRay/Fetcher.php

+ 1
- 1
lib/XRay/Fetcher.php View File

@ -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']
];

Loading…
Cancel
Save