diff options
Diffstat (limited to 'doc/examples/hellobrowser.c')
-rw-r--r-- | doc/examples/hellobrowser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c index b155833d..defb5ae4 100644 --- a/doc/examples/hellobrowser.c +++ b/doc/examples/hellobrowser.c | |||
@@ -16,8 +16,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
16 | int ret; | 16 | int ret; |
17 | 17 | ||
18 | response = | 18 | response = |
19 | MHD_create_response_from_data (strlen (page), (void *) page, MHD_NO, | 19 | MHD_create_response_from_buffer (strlen (page), (void *) page, |
20 | MHD_NO); | 20 | MHD_RESPMEM_PERSISTENT); |
21 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 21 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
22 | MHD_destroy_response (response); | 22 | MHD_destroy_response (response); |
23 | 23 | ||