From f2c34438603ade59412645956e70a761d5f1b9f4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 5 Jul 2023 18:20:46 +0200 Subject: fix mime-type matching (#7882) --- src/mhd/mhd_legal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mhd/mhd_legal.c') diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 6325fdf7c..f3c16ad73 100644 --- 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)]; -- cgit v1.2.3