commit f2c34438603ade59412645956e70a761d5f1b9f4 parent 95c05a88276cc41837aaae6d2b6d4b99d8bef612 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 5 Jul 2023 18:20:46 +0200 fix mime-type matching (#7882) Diffstat:
| M | src/mhd/mhd_legal.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c @@ -131,6 +131,9 @@ mime_matches (const char *accept_pattern, if ( (NULL == da) || (NULL == dm) ) 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, ';'); if (NULL == end) end = &da[strlen (da)];