blob: f8be759e0f9b1d21c61b8683c6796b957cad52d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
namespace GeminiFoundation;
function mime_content_type(string $filePath): string
{
$pathinfo = pathinfo($filePath);
if ($pathinfo['extension'] === 'gmi') {
return 'text/gemini';
}
return \mime_content_type($filePath) ?: '';
}
|