aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r--src/testcurl/https/test_https_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c
index 503191e0..968a0b96 100644
--- a/src/testcurl/https/test_https_get.c
+++ b/src/testcurl/https/test_https_get.c
@@ -99,7 +99,7 @@ ahc_empty (void *cls,
99 const char *version, 99 const char *version,
100 const char *upload_data, 100 const char *upload_data,
101 size_t *upload_data_size, 101 size_t *upload_data_size,
102 void **unused) 102 void **req_cls)
103{ 103{
104 static int ptr; 104 static int ptr;
105 struct MHD_Response *response; 105 struct MHD_Response *response;
@@ -114,12 +114,12 @@ ahc_empty (void *cls,
114 if (0 != strcmp ("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 != *req_cls)
118 { 118 {
119 *unused = &ptr; 119 *req_cls = &ptr;
120 return MHD_YES; 120 return MHD_YES;
121 } 121 }
122 *unused = NULL; 122 *req_cls = NULL;
123 response = MHD_create_response_from_buffer (0, 123 response = MHD_create_response_from_buffer (0,
124 NULL, 124 NULL,
125 MHD_RESPMEM_PERSISTENT); 125 MHD_RESPMEM_PERSISTENT);