Set the mimetype of everything under Downloads/ to binary

release/1.3.2
Lauri Kasanen 9 months ago
parent bc580857c6
commit a6bc1e4b76
No known key found for this signature in database

@ -783,6 +783,10 @@ static const char *name2mime(const char *name) {
goto def;
end++;
// Everything under Downloads/ should be treated as binary
if (strcasestr(name, "Downloads/"))
goto def;
#define CMP(s) if (!strncmp(end, s, sizeof(s) - 1))
CMP("htm")

Loading…
Cancel
Save