diff options
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r-- | doc/examples/largepost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index 82f06e26..df36f1e9 100644 --- a/doc/examples/largepost.c +++ b/doc/examples/largepost.c | |||
@@ -51,8 +51,8 @@ send_page (struct MHD_Connection *connection, const char *page, | |||
51 | struct MHD_Response *response; | 51 | struct MHD_Response *response; |
52 | 52 | ||
53 | response = | 53 | response = |
54 | MHD_create_response_from_data (strlen (page), (void *) page, MHD_NO, | 54 | MHD_create_response_from_buffer (strlen (page), (void *) page, |
55 | MHD_YES); | 55 | MHD_RESPMEM_PERSISTENT); |
56 | if (!response) | 56 | if (!response) |
57 | return MHD_NO; | 57 | return MHD_NO; |
58 | 58 | ||