mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-16 20:43:42 +00:00
fixed mime guessing
This commit is contained in:
@@ -56,7 +56,7 @@ const char *guess_mime_type(const char *path) {
|
|||||||
char *dot;
|
char *dot;
|
||||||
char *ext;
|
char *ext;
|
||||||
|
|
||||||
dot = strchr(path, '.');
|
dot = strrchr(path, '.');
|
||||||
if (dot == NULL || strchr(dot, '/') != NULL) {
|
if (dot == NULL || strchr(dot, '/') != NULL) {
|
||||||
goto misc;
|
goto misc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user