fixed mime guessing

This commit is contained in:
Devaev Maxim
2020-01-29 20:13:31 +03:00
parent 49eb7f6e51
commit 61f2bfa00e

View File

@@ -56,7 +56,7 @@ const char *guess_mime_type(const char *path) {
char *dot;
char *ext;
dot = strchr(path, '.');
dot = strrchr(path, '.');
if (dot == NULL || strchr(dot, '/') != NULL) {
goto misc;
}