commit 3002ca583e2770146bdd5d75602b6a36c8b2a777
parent 3806c7ba24e772bba007c273f6e74f00ccb7d83f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 18 May 2023 20:44:27 +0300
test_post: fixed caseless key name match
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
@@ -112,10 +112,10 @@ post_iterator (void *cls,
(void) kind; (void) filename; (void) content_type; /* Unused. Silent compiler warning. */
(void) transfer_encoding; (void) off; /* Unused. Silent compiler warning. */
- if ((0 == strcasecmp (key, "name")) &&
+ if ((0 == strcmp (key, "name")) &&
(size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size)))
(*eok) |= 1;
- if ((0 == strcasecmp (key, "project")) &&
+ if ((0 == strcmp (key, "project")) &&
(size == strlen ("curl")) && (0 == strncmp (value, "curl", size)))
(*eok) |= 2;
return MHD_YES;