diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 21:57:40 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 21:57:40 +0200 |
commit | 9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (patch) | |
tree | 24411285a69340e6e9d3af6aeecf27d82c118038 /file.c | |
parent | f005928d63165d28b32851f04f29055a4d0cdad5 (diff) |
fix crash when downloading a file without extension
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,7 @@ fill_metadata(struct file * f) return false; /* default mime */ - f->mime = MIME__MAX; + f->mime = MIME_BIN; /* check if it is a directory */ path_len = url_build(path, PATH_MAX, data_dir, f->path, f->name, NULL); |