]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Hash the URL before using it as cache key in Util\Images::getInfoFromURLCached
[friendica.git] / src / Util / ParseUrl.php
index 2763f56abf52aefc8090779b7fca8090906478ab..24be55cab931ced253b360a51070f93852dcb0d0 100644 (file)
@@ -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)));