aboutsummaryrefslogtreecommitdiff
path: root/src/examples/minimal_example.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/examples/minimal_example.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/examples/minimal_example.c')
-rw-r--r--src/examples/minimal_example.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c
index 992a7ca3..9293242b 100644
--- a/src/examples/minimal_example.c
+++ b/src/examples/minimal_example.c
@@ -49,8 +49,9 @@ ahc_echo (void *cls,
49 return MHD_YES; 49 return MHD_YES;
50 } 50 }
51 *ptr = NULL; /* reset when done */ 51 *ptr = NULL; /* reset when done */
52 response = MHD_create_response_from_data (strlen (me), 52 response = MHD_create_response_from_buffer (strlen (me),
53 (void *) me, MHD_NO, MHD_NO); 53 (void *) me,
54 MHD_RESPMEM_PERSISTENT);
54 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 55 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
55 MHD_destroy_response (response); 56 MHD_destroy_response (response);
56 return ret; 57 return ret;