]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Place default extensions map to the config
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 13:14:45 +0000 (13:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 13:14:45 +0000 (13:14 +0000)
conf/modules.d/mime_types.conf

index c42ea9e76a2530fec438198de3f64a5f7fd316d5..71d90e37e19f667e4b4b48fcb38c0d6a44554041 100644 (file)
@@ -18,4 +18,11 @@ mime_types {
     .include(try=true,priority=1) "$LOCAL_CONFDIR/local.d/mime_types.conf"
     .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
     file = "${CONFDIR}/mime_types.inc";
+
+    # Match specific extensions to specific content types
+    extension_map = {
+      html = "text/html";
+      txt = "text/plain";
+      pdf = "application/pdf";
+    }
 }