aboutsummaryrefslogtreecommitdiff
path: root/mime.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-21 07:51:29 +0000
committerOmar Polo <op@omarpolo.com>2021-04-21 07:51:29 +0000
commit4d820b6cd266d6e81b38e25e0850f8990abef32e (patch)
tree1a8185f4a8a480a31f80a027388fa69eb2b690ff /mime.c
parent5d1474a5618d5bc4745316b13311dee91d076e6b (diff)
use `text/x-patch' for .patch and .diff files
Diffstat (limited to 'mime.c')
-rw-r--r--mime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mime.c b/mime.c
index 7fb444d..096046e 100644
--- a/mime.c
+++ b/mime.c
@@ -67,6 +67,8 @@ load_default_mime(struct mime *mime)
{"text/markdown", "markdown"},
{"text/markdown", "md"},
{"text/plain", "txt"},
+ {"text/x-patch", "diff"}
+ {"text/x-patch", "patch"},
{"text/xml", "xml"},
{NULL, NULL}
};