aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-05-18 20:44:27 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-06-01 09:44:31 +0300
commit3002ca583e2770146bdd5d75602b6a36c8b2a777 (patch)
tree5b1269370e796487d051f460a6dab2ea49980d4a
parent3806c7ba24e772bba007c273f6e74f00ccb7d83f (diff)
downloadlibmicrohttpd-3002ca583e2770146bdd5d75602b6a36c8b2a777.tar.gz
libmicrohttpd-3002ca583e2770146bdd5d75602b6a36c8b2a777.zip
test_post: fixed caseless key name match
-rw-r--r--src/testcurl/test_post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 830663b5..658b7dd2 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -112,10 +112,10 @@ post_iterator (void *cls,
112 (void) kind; (void) filename; (void) content_type; /* Unused. Silent compiler warning. */ 112 (void) kind; (void) filename; (void) content_type; /* Unused. Silent compiler warning. */
113 (void) transfer_encoding; (void) off; /* Unused. Silent compiler warning. */ 113 (void) transfer_encoding; (void) off; /* Unused. Silent compiler warning. */
114 114
115 if ((0 == strcasecmp (key, "name")) && 115 if ((0 == strcmp (key, "name")) &&
116 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) 116 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size)))
117 (*eok) |= 1; 117 (*eok) |= 1;
118 if ((0 == strcasecmp (key, "project")) && 118 if ((0 == strcmp (key, "project")) &&
119 (size == strlen ("curl")) && (0 == strncmp (value, "curl", size))) 119 (size == strlen ("curl")) && (0 == strncmp (value, "curl", size)))
120 (*eok) |= 2; 120 (*eok) |= 2;
121 return MHD_YES; 121 return MHD_YES;