fix mime-type matching (#7882)
This commit is contained in:
parent
95c05a8827
commit
f2c3443860
@ -131,6 +131,9 @@ mime_matches (const char *accept_pattern,
|
|||||||
if ( (NULL == da) ||
|
if ( (NULL == da) ||
|
||||||
(NULL == dm) )
|
(NULL == dm) )
|
||||||
return (0 == strcmp ("*", accept_pattern));
|
return (0 == strcmp ("*", accept_pattern));
|
||||||
|
/* Note: technically, we might want to parse the "q=$FLOAT"
|
||||||
|
part after the ';' and figure out which one is the
|
||||||
|
best/preferred match instead of returning a boolean... */
|
||||||
end = strchr (da, ';');
|
end = strchr (da, ';');
|
||||||
if (NULL == end)
|
if (NULL == end)
|
||||||
end = &da[strlen (da)];
|
end = &da[strlen (da)];
|
||||||
|
Loading…
Reference in New Issue
Block a user