diff options
Diffstat (limited to 'src/microhttpd/mhd_str.c')
-rw-r--r-- | src/microhttpd/mhd_str.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c index 473ff466..540ff228 100644 --- a/src/microhttpd/mhd_str.c +++ b/src/microhttpd/mhd_str.c | |||
@@ -384,10 +384,7 @@ MHD_str_equal_caseless_ (const char *str1, | |||
384 | { | 384 | { |
385 | const char c1 = *str1; | 385 | const char c1 = *str1; |
386 | const char c2 = *str2; | 386 | const char c2 = *str2; |
387 | if ( (c1 == c2) || | 387 | if (charsequalcaseless (c1, c2)) |
388 | (isasciiupper (c1) ? | ||
389 | ((c1 - 'A' + 'a') == c2) : | ||
390 | (isasciiupper (c2) && (c1 == (c2 - 'A' + 'a')))) ) | ||
391 | { | 388 | { |
392 | str1++; | 389 | str1++; |
393 | str2++; | 390 | str2++; |