aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/hellobrowser.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/hellobrowser.c')
-rw-r--r--doc/examples/hellobrowser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c
index b14ea6d8..0b7d9071 100644
--- a/doc/examples/hellobrowser.c
+++ b/doc/examples/hellobrowser.c
@@ -31,9 +31,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
31 (void) upload_data_size; /* Unused. Silent compiler warning. */ 31 (void) upload_data_size; /* Unused. Silent compiler warning. */
32 (void) req_cls; /* Unused. Silent compiler warning. */ 32 (void) req_cls; /* Unused. Silent compiler warning. */
33 33
34 response = 34 response = MHD_create_response_from_buffer_static (strlen (page), page);
35 MHD_create_response_from_buffer (strlen (page), (void *) page,
36 MHD_RESPMEM_PERSISTENT);
37 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 35 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
38 MHD_destroy_response (response); 36 MHD_destroy_response (response);
39 37