mirror of
https://github.com/friendica/friendica
synced 2025-05-01 08:24:23 +02:00
Improve contact search speed / assume octet-stream on missing content type
This commit is contained in:
parent
3395c61649
commit
c5337c81e7
2 changed files with 5 additions and 4 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue