aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-22 21:03:22 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-09-22 21:03:22 +0300
commitcba8e9f23e0855c63626118536a1495bd8c45089 (patch)
treec462dc04378d9ba8198803c8821516c204a144c2 /src/testcurl/test_post.c
parent2c4af5c590ebe0386b77fe04c90ffc67cd6e96b0 (diff)
downloadlibmicrohttpd-cba8e9f23e0855c63626118536a1495bd8c45089.tar.gz
libmicrohttpd-cba8e9f23e0855c63626118536a1495bd8c45089.zip
tests: fixed case-insensitive match for method name
Diffstat (limited to 'src/testcurl/test_post.c')
-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 8cce34a7..7bed9a3e 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -137,7 +137,7 @@ ahc_echo (void *cls,
137 enum MHD_Result ret; 137 enum MHD_Result ret;
138 (void) cls; (void) version; /* Unused. Silent compiler warning. */ 138 (void) cls; (void) version; /* Unused. Silent compiler warning. */
139 139
140 if (0 != strcasecmp ("POST", method)) 140 if (0 != strcmp ("POST", method))
141 { 141 {
142 printf ("METHOD: %s\n", method); 142 printf ("METHOD: %s\n", method);
143 return MHD_NO; /* unexpected method */ 143 return MHD_NO; /* unexpected method */
@@ -599,7 +599,7 @@ ahc_cancel (void *cls,
599 (void) cls; (void) url; (void) version; /* Unused. Silent compiler warning. */ 599 (void) cls; (void) url; (void) version; /* Unused. Silent compiler warning. */
600 (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ 600 (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */
601 601
602 if (0 != strcasecmp ("POST", method)) 602 if (0 != strcmp ("POST", method))
603 { 603 {
604 fprintf (stderr, 604 fprintf (stderr,
605 "Unexpected method `%s'\n", method); 605 "Unexpected method `%s'\n", method);