aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post.c')
-rw-r--r--src/testcurl/test_post.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 291c5ce3..18ad0499 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -105,10 +105,10 @@ post_iterator (void *cls,
105{ 105{
106 int *eok = cls; 106 int *eok = cls;
107 107
108 if ((0 == strcmp (key, "name")) && 108 if ((0 == strcasecmp (key, "name")) &&
109 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) 109 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size)))
110 (*eok) |= 1; 110 (*eok) |= 1;
111 if ((0 == strcmp (key, "project")) && 111 if ((0 == strcasecmp (key, "project")) &&
112 (size == strlen ("curl")) && (0 == strncmp (value, "curl", size))) 112 (size == strlen ("curl")) && (0 == strncmp (value, "curl", size)))
113 (*eok) |= 2; 113 (*eok) |= 2;
114 return MHD_YES; 114 return MHD_YES;
@@ -129,7 +129,7 @@ ahc_echo (void *cls,
129 struct MHD_PostProcessor *pp; 129 struct MHD_PostProcessor *pp;
130 int ret; 130 int ret;
131 131
132 if (0 != strcmp ("POST", method)) 132 if (0 != strcasecmp ("POST", method))
133 { 133 {
134 printf ("METHOD: %s\n", method); 134 printf ("METHOD: %s\n", method);
135 return MHD_NO; /* unexpected method */ 135 return MHD_NO; /* unexpected method */
@@ -470,7 +470,7 @@ ahc_cancel (void *cls,
470 struct MHD_Response *response; 470 struct MHD_Response *response;
471 int ret; 471 int ret;
472 472
473 if (0 != strcmp ("POST", method)) 473 if (0 != strcasecmp ("POST", method))
474 { 474 {
475 fprintf (stderr, 475 fprintf (stderr,
476 "Unexpected method `%s'\n", method); 476 "Unexpected method `%s'\n", method);