Improve contact search speed / assume octet-stream on missing content type
This commit is contained in:
@@ -72,7 +72,7 @@ class ParseUrl
|
||||
|
||||
$contenttype = $curlResult->getHeader('Content-Type')[0] ?? '';
|
||||
if (empty($contenttype)) {
|
||||
return [];
|
||||
return ['application', 'octet-stream'];
|
||||
}
|
||||
|
||||
return explode('/', current(explode(';', $contenttype)));
|
||||
|
||||
Reference in New Issue
Block a user