diff --git a/src/http/mime.c b/src/http/mime.c index 62f356e..bfbfa78 100644 --- a/src/http/mime.c +++ b/src/http/mime.c @@ -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; }