diff options
Diffstat (limited to 'src/testcurl/daemontest_iplimit.c')
-rw-r--r-- | src/testcurl/daemontest_iplimit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_iplimit.c b/src/testcurl/daemontest_iplimit.c index 93e6b06c..6b714e92 100644 --- a/src/testcurl/daemontest_iplimit.c +++ b/src/testcurl/daemontest_iplimit.c | |||
@@ -80,8 +80,9 @@ ahc_echo (void *cls, | |||
80 | return MHD_YES; | 80 | return MHD_YES; |
81 | } | 81 | } |
82 | *unused = NULL; | 82 | *unused = NULL; |
83 | response = MHD_create_response_from_data (strlen (url), | 83 | response = MHD_create_response_from_buffer (strlen (url), |
84 | (void *) url, MHD_NO, MHD_YES); | 84 | (void *) url, |
85 | MHD_RESPMEM_MUST_COPY); | ||
85 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 86 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
86 | MHD_destroy_response (response); | 87 | MHD_destroy_response (response); |
87 | if (ret == MHD_NO) | 88 | if (ret == MHD_NO) |