aboutsummaryrefslogtreecommitdiff
path: root/mime.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-24 14:11:40 +0000
committerOmar Polo <op@omarpolo.com>2021-01-24 14:11:40 +0000
commitc8b74339185123feebb6164b91f500f1930e45ff (patch)
tree29c17d8b2b9c0c4a408d347b1b5ca0890ab52ef7 /mime.c
parent501e489c90eeddec3f29b014864f57e840ea1fa8 (diff)
added support for location blocks
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;