aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_iplimit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-01-04 12:40:03 +0000
committerChristian Grothoff <christian@grothoff.org>2011-01-04 12:40:03 +0000
commit43542a78c6bfc10dc06196c0702b802eb6a45591 (patch)
tree3857b4ec8cd7ce3c8cbba77de74902cdd6b92c10 /src/testcurl/daemontest_iplimit.c
parent3af8f4ce646d29cd5942a1e3dda3b7ed03a82af6 (diff)
downloadlibmicrohttpd-43542a78c6bfc10dc06196c0702b802eb6a45591.tar.gz
libmicrohttpd-43542a78c6bfc10dc06196c0702b802eb6a45591.zip
introducing MHD_create_response_from_buffer, deprecating MHD_create_response_from_data
Diffstat (limited to 'src/testcurl/daemontest_iplimit.c')
-rw-r--r--src/testcurl/daemontest_iplimit.c5
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)