aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r--src/testcurl/test_post_loop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index ec929904..c36fba7f 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -86,7 +86,7 @@ ahc_echo (void *cls,
86 const char *method, 86 const char *method,
87 const char *version, 87 const char *version,
88 const char *upload_data, size_t *upload_data_size, 88 const char *upload_data, size_t *upload_data_size,
89 void **mptr) 89 void **req_cls)
90{ 90{
91 static int marker; 91 static int marker;
92 struct MHD_Response *response; 92 struct MHD_Response *response;
@@ -99,21 +99,21 @@ ahc_echo (void *cls,
99 printf ("METHOD: %s\n", method); 99 printf ("METHOD: %s\n", method);
100 return MHD_NO; /* unexpected method */ 100 return MHD_NO; /* unexpected method */
101 } 101 }
102 if ((*mptr != NULL) && (0 == *upload_data_size)) 102 if ((*req_cls != NULL) && (0 == *upload_data_size))
103 { 103 {
104 if (*mptr != &marker) 104 if (*req_cls != &marker)
105 abort (); 105 abort ();
106 response = MHD_create_response_from_buffer (2, "OK", 106 response = MHD_create_response_from_buffer (2, "OK",
107 MHD_RESPMEM_PERSISTENT); 107 MHD_RESPMEM_PERSISTENT);
108 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 108 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
109 MHD_destroy_response (response); 109 MHD_destroy_response (response);
110 *mptr = NULL; 110 *req_cls = NULL;
111 return ret; 111 return ret;
112 } 112 }
113 if (strlen (POST_DATA) != *upload_data_size) 113 if (strlen (POST_DATA) != *upload_data_size)
114 return MHD_YES; 114 return MHD_YES;
115 *upload_data_size = 0; 115 *upload_data_size = 0;
116 *mptr = ▮ 116 *req_cls = ▮
117 return MHD_YES; 117 return MHD_YES;
118} 118}
119 119