fix mime-type matching (#7882)

This commit is contained in:
Christian Grothoff 2023-07-05 18:20:58 +02:00
parent f2c3443860
commit 11ea6fcfce
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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, ';');