mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-02 05:36:31 +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 *ext;
|
||||
|
||||
dot = strchr(path, '.');
|
||||
dot = strrchr(path, '.');
|
||||
if (dot == NULL || strchr(dot, '/') != NULL) {
|
||||
goto misc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user