diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-22 21:03:22 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-22 21:03:22 +0300 |
commit | cba8e9f23e0855c63626118536a1495bd8c45089 (patch) | |
tree | c462dc04378d9ba8198803c8821516c204a144c2 /src/testcurl | |
parent | 2c4af5c590ebe0386b77fe04c90ffc67cd6e96b0 (diff) | |
download | libmicrohttpd-cba8e9f23e0855c63626118536a1495bd8c45089.tar.gz libmicrohttpd-cba8e9f23e0855c63626118536a1495bd8c45089.zip |
tests: fixed case-insensitive match for method name
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/https/test_https_get.c | 4 | ||||
-rw-r--r-- | src/testcurl/https/test_https_get_iovec.c | 4 | ||||
-rw-r--r-- | src/testcurl/test_add_conn.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_delete.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_get.c | 4 | ||||
-rw-r--r-- | src/testcurl/test_get_close_keep_alive.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_get_empty.c | 4 | ||||
-rw-r--r-- | src/testcurl/test_patch.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_post.c | 4 | ||||
-rw-r--r-- | src/testcurl/test_put.c | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c index d7e534ed..503191e0 100644 --- a/src/testcurl/https/test_https_get.c +++ b/src/testcurl/https/test_https_get.c | |||
@@ -111,8 +111,8 @@ ahc_empty (void *cls, | |||
111 | (void) upload_data; | 111 | (void) upload_data; |
112 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 112 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
113 | 113 | ||
114 | if (0 != strcasecmp ("GET", | 114 | if (0 != strcmp ("GET", |
115 | method)) | 115 | method)) |
116 | return MHD_NO; /* unexpected method */ | 116 | return MHD_NO; /* unexpected method */ |
117 | if (&ptr != *unused) | 117 | if (&ptr != *unused) |
118 | { | 118 | { |
diff --git a/src/testcurl/https/test_https_get_iovec.c b/src/testcurl/https/test_https_get_iovec.c index ab2bf35d..81231bd6 100644 --- a/src/testcurl/https/test_https_get_iovec.c +++ b/src/testcurl/https/test_https_get_iovec.c | |||
@@ -261,8 +261,8 @@ ahc_empty (void *cls, | |||
261 | (void) upload_data; | 261 | (void) upload_data; |
262 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 262 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
263 | 263 | ||
264 | if (0 != strcasecmp ("GET", | 264 | if (0 != strcmp ("GET", |
265 | method)) | 265 | method)) |
266 | return MHD_NO; /* unexpected method */ | 266 | return MHD_NO; /* unexpected method */ |
267 | if (&ptr != *unused) | 267 | if (&ptr != *unused) |
268 | { | 268 | { |
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c index 04def886..1c6b3adf 100644 --- a/src/testcurl/test_add_conn.c +++ b/src/testcurl/test_add_conn.c | |||
@@ -158,7 +158,7 @@ ahc_echo (void *cls, | |||
158 | (void) upload_data; | 158 | (void) upload_data; |
159 | (void) upload_data_size; /* Unused. Silence compiler warning. */ | 159 | (void) upload_data_size; /* Unused. Silence compiler warning. */ |
160 | 160 | ||
161 | if (0 != strcasecmp (me, method)) | 161 | if (0 != strcmp (me, method)) |
162 | return MHD_NO; /* unexpected method */ | 162 | return MHD_NO; /* unexpected method */ |
163 | if (&ptr != *unused) | 163 | if (&ptr != *unused) |
164 | { | 164 | { |
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c index 7ecaa3e9..94f2730e 100644 --- a/src/testcurl/test_delete.c +++ b/src/testcurl/test_delete.c | |||
@@ -97,7 +97,7 @@ ahc_echo (void *cls, | |||
97 | enum MHD_Result ret; | 97 | enum MHD_Result ret; |
98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ | 98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ |
99 | 99 | ||
100 | if (0 != strcasecmp ("DELETE", method)) | 100 | if (0 != strcmp ("DELETE", method)) |
101 | return MHD_NO; /* unexpected method */ | 101 | return MHD_NO; /* unexpected method */ |
102 | if ((*done) == 0) | 102 | if ((*done) == 0) |
103 | { | 103 | { |
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c index 68ff6218..8eabdc93 100644 --- a/src/testcurl/test_get.c +++ b/src/testcurl/test_get.c | |||
@@ -117,7 +117,7 @@ ahc_echo (void *cls, | |||
117 | (void) upload_data; | 117 | (void) upload_data; |
118 | (void) upload_data_size; /* Unused. Silence compiler warning. */ | 118 | (void) upload_data_size; /* Unused. Silence compiler warning. */ |
119 | 119 | ||
120 | if (0 != strcasecmp (me, method)) | 120 | if (0 != strcmp (me, method)) |
121 | return MHD_NO; /* unexpected method */ | 121 | return MHD_NO; /* unexpected method */ |
122 | if (&ptr != *unused) | 122 | if (&ptr != *unused) |
123 | { | 123 | { |
@@ -756,7 +756,7 @@ ahc_empty (void *cls, | |||
756 | (void) upload_data; | 756 | (void) upload_data; |
757 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 757 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
758 | 758 | ||
759 | if (0 != strcasecmp ("GET", method)) | 759 | if (0 != strcmp ("GET", method)) |
760 | return MHD_NO; /* unexpected method */ | 760 | return MHD_NO; /* unexpected method */ |
761 | if (&ptr != *unused) | 761 | if (&ptr != *unused) |
762 | { | 762 | { |
diff --git a/src/testcurl/test_get_close_keep_alive.c b/src/testcurl/test_get_close_keep_alive.c index 4f42f3b5..cb647f67 100644 --- a/src/testcurl/test_get_close_keep_alive.c +++ b/src/testcurl/test_get_close_keep_alive.c | |||
@@ -313,7 +313,7 @@ ahc_echo (void *cls, | |||
313 | (void) upload_data; | 313 | (void) upload_data; |
314 | (void) upload_data_size; /* Unused. Silence compiler warning. */ | 314 | (void) upload_data_size; /* Unused. Silence compiler warning. */ |
315 | 315 | ||
316 | if (0 != strcasecmp (me, method)) | 316 | if (0 != strcmp (me, method)) |
317 | return MHD_NO; /* unexpected method */ | 317 | return MHD_NO; /* unexpected method */ |
318 | if (&ptr != *unused) | 318 | if (&ptr != *unused) |
319 | { | 319 | { |
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c index 87d30c4d..301b27ec 100644 --- a/src/testcurl/test_get_empty.c +++ b/src/testcurl/test_get_empty.c | |||
@@ -116,7 +116,7 @@ ahc_echo (void *cls, | |||
116 | (void) upload_data; | 116 | (void) upload_data; |
117 | (void) upload_data_size; /* Unused. Silence compiler warning. */ | 117 | (void) upload_data_size; /* Unused. Silence compiler warning. */ |
118 | 118 | ||
119 | if (0 != strcasecmp (me, method)) | 119 | if (0 != strcmp (me, method)) |
120 | return MHD_NO; /* unexpected method */ | 120 | return MHD_NO; /* unexpected method */ |
121 | if (&ptr != *unused) | 121 | if (&ptr != *unused) |
122 | { | 122 | { |
@@ -714,7 +714,7 @@ ahc_empty (void *cls, | |||
714 | (void) upload_data; | 714 | (void) upload_data; |
715 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 715 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
716 | 716 | ||
717 | if (0 != strcasecmp ("GET", method)) | 717 | if (0 != strcmp ("GET", method)) |
718 | return MHD_NO; /* unexpected method */ | 718 | return MHD_NO; /* unexpected method */ |
719 | if (&ptr != *unused) | 719 | if (&ptr != *unused) |
720 | { | 720 | { |
diff --git a/src/testcurl/test_patch.c b/src/testcurl/test_patch.c index 85bec751..b44a51c9 100644 --- a/src/testcurl/test_patch.c +++ b/src/testcurl/test_patch.c | |||
@@ -97,7 +97,7 @@ ahc_echo (void *cls, | |||
97 | enum MHD_Result ret; | 97 | enum MHD_Result ret; |
98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ | 98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ |
99 | 99 | ||
100 | if (0 != strcasecmp ("PATCH", method)) | 100 | if (0 != strcmp ("PATCH", method)) |
101 | return MHD_NO; /* unexpected method */ | 101 | return MHD_NO; /* unexpected method */ |
102 | if ((*done) == 0) | 102 | if ((*done) == 0) |
103 | { | 103 | { |
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); |
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c index 0612c65b..ce173079 100644 --- a/src/testcurl/test_put.c +++ b/src/testcurl/test_put.c | |||
@@ -97,7 +97,7 @@ ahc_echo (void *cls, | |||
97 | enum MHD_Result ret; | 97 | enum MHD_Result ret; |
98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ | 98 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ |
99 | 99 | ||
100 | if (0 != strcasecmp ("PUT", method)) | 100 | if (0 != strcmp ("PUT", method)) |
101 | return MHD_NO; /* unexpected method */ | 101 | return MHD_NO; /* unexpected method */ |
102 | if ((*done) == 0) | 102 | if ((*done) == 0) |
103 | { | 103 | { |