From 4d820b6cd266d6e81b38e25e0850f8990abef32e Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 21 Apr 2021 07:51:29 +0000 Subject: use `text/x-patch' for .patch and .diff files --- mime.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mime.c') 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} }; -- cgit v1.2.3