From cd5826b8ba3b43ed9802309688ae029c0f5c4081 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 10 Sep 2022 09:43:57 +0000 Subject: retire the deprecated `mime' and `map' config options --- mime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mime.c') diff --git a/mime.c b/mime.c index ad338f0..1586cf8 100644 --- a/mime.c +++ b/mime.c @@ -82,6 +82,10 @@ load_default_mime(struct mime *mime) {NULL, NULL} }, *i; + /* don't load the default if `types' was used. */ + if (mime->len != 0) + return 0; + for (i = m; i->mime != NULL; ++i) { if (add_mime(mime, i->mime, i->ext) == -1) return -1; -- cgit v1.2.3