summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-08-29 21:57:40 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-08-29 21:57:40 +0200
commit9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (patch)
tree24411285a69340e6e9d3af6aeecf27d82c118038
parentf005928d63165d28b32851f04f29055a4d0cdad5 (diff)
fix crash when downloading a file without extension
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 5785805..1a53b89 100644
--- a/file.c
+++ b/file.c
@@ -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);