aboutsummaryrefslogtreecommitdiff
path: root/mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'mime.c')
-rw-r--r--mime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mime.c b/mime.c
index 81bc2ef..f8fdd67 100644
--- a/mime.c
+++ b/mime.c
@@ -97,8 +97,7 @@ mime(struct vhost *host, const char *path)
const char *def, *ext;
struct etm *t;
- if ((def = host->default_mime) == NULL)
- def = "application/octet-stream";
+ def = vhost_default_mime(host, path);
if ((ext = path_ext(path)) == NULL)
return def;