summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2019-02-05 20:36:02 +0000
committerIan C <ianc@noddybox.co.uk>2019-02-05 20:36:02 +0000
commit3825efd8ca52f6c8c5471168b016fb4d10f482b7 (patch)
tree02d2f0d20a6b6147b95ddead34194db7cbfe1bd4 /common.php
parenta72c12f2638eec267f163415d1a4acf20f966c8e (diff)
Added MIME types for HTML and Markdown. May need to expand Markdown.
Diffstat (limited to 'common.php')
-rw-r--r--common.php5
1 files changed, 5 insertions, 0 deletions
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';