aboutsummaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-05 18:20:46 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-05 18:20:46 +0200
commitf2c34438603ade59412645956e70a761d5f1b9f4 (patch)
treec77389996560efef4fc83188e412f9f2adb7676f /src/mhd
parent95c05a88276cc41837aaae6d2b6d4b99d8bef612 (diff)
fix mime-type matching (#7882)
Diffstat (limited to 'src/mhd')
-rw-r--r--src/mhd/mhd_legal.c3
1 files changed, 3 insertions, 0 deletions
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)];