From 61f2bfa00eac92d34f5e7f62073725a806b2d3d6 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 29 Jan 2020 20:13:31 +0300 Subject: [PATCH] fixed mime guessing --- src/http/mime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }