libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 317691bc9736ade7d825b1eb3034fd744bacbae7
parent 7131f3876031fcd7a67963049edbf21b7f89ee38
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon,  1 Nov 2021 21:01:47 +0300

mhd_str: minor improvement

Diffstat:
Msrc/microhttpd/mhd_str.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c @@ -384,10 +384,7 @@ MHD_str_equal_caseless_ (const char *str1, { const char c1 = *str1; const char c2 = *str2; - if ( (c1 == c2) || - (isasciiupper (c1) ? - ((c1 - 'A' + 'a') == c2) : - (isasciiupper (c2) && (c1 == (c2 - 'A' + 'a')))) ) + if (charsequalcaseless (c1, c2)) { str1++; str2++;