aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_post_loop.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_post_loop.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_post_loop.c')
-rw-r--r--src/testcurl/daemontest_post_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcurl/daemontest_post_loop.c b/src/testcurl/daemontest_post_loop.c
index b1e1ab3f..f241744a 100644
--- a/src/testcurl/daemontest_post_loop.c
+++ b/src/testcurl/daemontest_post_loop.c
@@ -83,7 +83,8 @@ ahc_echo (void *cls,
83 { 83 {
84 if (*mptr != &marker) 84 if (*mptr != &marker)
85 abort (); 85 abort ();
86 response = MHD_create_response_from_data (2, "OK", MHD_NO, MHD_NO); 86 response = MHD_create_response_from_buffer (2, "OK",
87 MHD_RESPMEM_PERSISTENT);
87 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 88 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
88 MHD_destroy_response (response); 89 MHD_destroy_response (response);
89 *mptr = NULL; 90 *mptr = NULL;