diff options
author | Omar Polo <op@omarpolo.com> | 2022-09-10 09:43:57 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-09-10 09:43:57 +0000 |
commit | cd5826b8ba3b43ed9802309688ae029c0f5c4081 (patch) | |
tree | 6de2abea6c0b82ca7084526815a8715263809254 /mime.c | |
parent | aa9543b9fd1963d86f63fda13addb356f9039c37 (diff) |
retire the deprecated `mime' and `map' config options
Diffstat (limited to 'mime.c')
-rw-r--r-- | mime.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |