Fix IHTTPResult::getHeader()

- Now returns a string array, like expected
- Fix usages
- Fix dataset
This commit is contained in:
Philipp 2020-10-09 22:28:41 +02:00
parent 0be3439cb7
commit 732acbf7a7
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -160,7 +160,7 @@ function mailstream_do_images($a, &$item, &$attachments) {
'data' => $curlResult->getBody(),
'guid' => hash("crc32", $url),
'filename' => basename($components['path']),
'type' => $curlResult->getContentType()
'type' => $curlResult->getContentType()[0] ?? ''
];
if (strlen($attachments[$url]['data'])) {