aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_process_headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_process_headers.c')
-rw-r--r--src/testcurl/test_process_headers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c
index 9a84b3ef..98b08fbc 100644
--- a/src/testcurl/test_process_headers.c
+++ b/src/testcurl/test_process_headers.c
@@ -89,7 +89,7 @@ ahc_echo (void *cls,
89 const char *method, 89 const char *method,
90 const char *version, 90 const char *version,
91 const char *upload_data, size_t *upload_data_size, 91 const char *upload_data, size_t *upload_data_size,
92 void **unused) 92 void **req_cls)
93{ 93{
94 static int ptr; 94 static int ptr;
95 const char *me = cls; 95 const char *me = cls;
@@ -100,12 +100,12 @@ ahc_echo (void *cls,
100 100
101 if (0 != strcmp (me, method)) 101 if (0 != strcmp (me, method))
102 return MHD_NO; /* unexpected method */ 102 return MHD_NO; /* unexpected method */
103 if (&ptr != *unused) 103 if (&ptr != *req_cls)
104 { 104 {
105 *unused = &ptr; 105 *req_cls = &ptr;
106 return MHD_YES; 106 return MHD_YES;
107 } 107 }
108 *unused = NULL; 108 *req_cls = NULL;
109 ret = 0; 109 ret = 0;
110 MHD_get_connection_values (connection, MHD_HEADER_KIND, &kv_cb, &ret); 110 MHD_get_connection_values (connection, MHD_HEADER_KIND, &kv_cb, &ret);
111 if (ret != 1) 111 if (ret != 1)