diff options
author | Ian C <ianc@noddybox.co.uk> | 2019-02-05 20:36:02 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2019-02-05 20:36:02 +0000 |
commit | 3825efd8ca52f6c8c5471168b016fb4d10f482b7 (patch) | |
tree | 02d2f0d20a6b6147b95ddead34194db7cbfe1bd4 /common.php | |
parent | a72c12f2638eec267f163415d1a4acf20f966c8e (diff) |
Added MIME types for HTML and Markdown. May need to expand Markdown.
Diffstat (limited to 'common.php')
-rw-r--r-- | common.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -40,6 +40,11 @@ function GuessMimeType($fname) return 'image/png'; case 'jpeg': return 'image/jpeg'; + case 'htm': + case 'html': + return 'text/html'; + case 'md': + return 'text/markdown'; } return 'text/plain'; |