From 3825efd8ca52f6c8c5471168b016fb4d10f482b7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 5 Feb 2019 20:36:02 +0000 Subject: Added MIME types for HTML and Markdown. May need to expand Markdown. --- common.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common.php b/common.php index cc9ce1c..9bd8272 100644 --- a/common.php +++ b/common.php @@ -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'; -- cgit v1.2.3