From 9b8d38ab209c6e7e747d6d420f1b105fe858c7eb Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Thu, 29 Aug 2024 21:57:40 +0200 Subject: fix crash when downloading a file without extension --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3