Skip to content

Commit c4ee4e7

Browse files
committed
🐛 Always return text/plain if mimetype can't be guessed
1 parent 24e32ba commit c4ee4e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FlysystemCloudinaryAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ protected function normalizeResponse(
503503
return [
504504
'contents' => $body,
505505
'etag' => Arr::get($response, 'etag'),
506-
'mimetype' => Util::guessMimeType($path, $body),
506+
'mimetype' => Util::guessMimeType($path, $body) ?? 'text/plain',
507507
'path' => $path,
508508
'size' => Arr::get($response, 'bytes'),
509509
'timestamp' => strtotime(Arr::get($response, 'created_at')),

0 commit comments

Comments
 (0)