diff options
Diffstat (limited to 'src/examples/minimal_example.c')
-rw-r--r-- | src/examples/minimal_example.c | 5 |
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; |