fix mime-type matching (#7882)
This commit is contained in:
parent
f2c3443860
commit
11ea6fcfce
@ -131,7 +131,7 @@ 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"
|
/* FIXME: eventually, we might want to parse the "q=$FLOAT"
|
||||||
part after the ';' and figure out which one is the
|
part after the ';' and figure out which one is the
|
||||||
best/preferred match instead of returning a boolean... */
|
best/preferred match instead of returning a boolean... */
|
||||||
end = strchr (da, ';');
|
end = strchr (da, ';');
|
||||||
|
Loading…
Reference in New Issue
Block a user