diff options
Diffstat (limited to 'src/testcurl/test_get_response_cleanup.c')
-rw-r--r-- | src/testcurl/test_get_response_cleanup.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c index ededc88b..fcda2349 100644 --- a/src/testcurl/test_get_response_cleanup.c +++ b/src/testcurl/test_get_response_cleanup.c | |||
@@ -125,14 +125,13 @@ ahc_echo (void *cls, | |||
125 | void **req_cls) | 125 | void **req_cls) |
126 | { | 126 | { |
127 | static int ptr; | 127 | static int ptr; |
128 | const char *me = cls; | ||
129 | struct MHD_Response *response; | 128 | struct MHD_Response *response; |
130 | enum MHD_Result ret; | 129 | enum MHD_Result ret; |
130 | (void) cls; | ||
131 | (void) url; (void) version; /* Unused. Silent compiler warning. */ | 131 | (void) url; (void) version; /* Unused. Silent compiler warning. */ |
132 | (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ | 132 | (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */ |
133 | 133 | ||
134 | // fprintf (stderr, "In CB: %s!\n", method); | 134 | if (0 != strcmp (MHD_HTTP_METHOD_GET, method)) |
135 | if (0 != strcmp (me, method)) | ||
136 | return MHD_NO; /* unexpected method */ | 135 | return MHD_NO; /* unexpected method */ |
137 | if (&ptr != *req_cls) | 136 | if (&ptr != *req_cls) |
138 | { | 137 | { |
@@ -172,7 +171,7 @@ testInternalGet () | |||
172 | 171 | ||
173 | ok = 1; | 172 | ok = 1; |
174 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 173 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, |
175 | port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); | 174 | port, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); |
176 | if (d == NULL) | 175 | if (d == NULL) |
177 | return 1; | 176 | return 1; |
178 | if (0 == port) | 177 | if (0 == port) |
@@ -221,7 +220,7 @@ testMultithreadedGet () | |||
221 | ok = 1; | 220 | ok = 1; |
222 | d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | 221 | d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION |
223 | | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 222 | | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, |
224 | port, NULL, NULL, &ahc_echo, "GET", | 223 | port, NULL, NULL, &ahc_echo, NULL, |
225 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 2, | 224 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 2, |
226 | MHD_OPTION_END); | 225 | MHD_OPTION_END); |
227 | if (d == NULL) | 226 | if (d == NULL) |
@@ -283,7 +282,7 @@ testMultithreadedPoolGet () | |||
283 | 282 | ||
284 | ok = 1; | 283 | ok = 1; |
285 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 284 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, |
286 | port, NULL, NULL, &ahc_echo, "GET", | 285 | port, NULL, NULL, &ahc_echo, NULL, |
287 | MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT, | 286 | MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT, |
288 | MHD_OPTION_END); | 287 | MHD_OPTION_END); |
289 | if (d == NULL) | 288 | if (d == NULL) |
@@ -339,7 +338,7 @@ testExternalGet () | |||
339 | 338 | ||
340 | ok = 1; | 339 | ok = 1; |
341 | d = MHD_start_daemon (MHD_USE_ERROR_LOG, | 340 | d = MHD_start_daemon (MHD_USE_ERROR_LOG, |
342 | port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); | 341 | port, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); |
343 | if (d == NULL) | 342 | if (d == NULL) |
344 | return 256; | 343 | return 256; |
345 | if (0 == port) | 344 | if (0 == port) |