diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-24 14:11:40 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-24 14:11:40 +0000 |
commit | c8b74339185123feebb6164b91f500f1930e45ff (patch) | |
tree | 29c17d8b2b9c0c4a408d347b1b5ca0890ab52ef7 /mime.c | |
parent | 501e489c90eeddec3f29b014864f57e840ea1fa8 (diff) |
added support for location blocks
Diffstat (limited to 'mime.c')
-rw-r--r-- | mime.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |