aboutsummaryrefslogtreecommitdiff
path: root/src/examples/fileserver_example_external_select.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/fileserver_example_external_select.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/fileserver_example_external_select.c')
-rw-r--r--src/examples/fileserver_example_external_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c
index a4dfcc1c..a7ab824a 100644
--- a/src/examples/fileserver_example_external_select.c
+++ b/src/examples/fileserver_example_external_select.c
@@ -76,9 +76,9 @@ ahc_echo (void *cls,
76 file = NULL; 76 file = NULL;
77 if (file == NULL) 77 if (file == NULL)
78 { 78 {
79 response = MHD_create_response_from_data (strlen (PAGE), 79 response = MHD_create_response_from_buffer (strlen (PAGE),
80 (void *) PAGE, 80 (void *) PAGE,
81 MHD_NO, MHD_NO); 81 MHD_RESPMEM_PERSISTENT);
82 ret = MHD_queue_response (connection, MHD_HTTP_NOT_FOUND, response); 82 ret = MHD_queue_response (connection, MHD_HTTP_NOT_FOUND, response);
83 MHD_destroy_response (response); 83 MHD_destroy_response (response);
84 } 84 }