diff options
Diffstat (limited to 'src/examples/demo_https.c')
-rw-r--r-- | src/examples/demo_https.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c index 1a09d2c2..56008d7f 100644 --- a/src/examples/demo_https.c +++ b/src/examples/demo_https.c | |||
@@ -385,9 +385,10 @@ update_directory (void) | |||
385 | "%s", | 385 | "%s", |
386 | INDEX_PAGE_FOOTER); | 386 | INDEX_PAGE_FOOTER); |
387 | initial_allocation = rdc.buf_len; /* remember for next time */ | 387 | initial_allocation = rdc.buf_len; /* remember for next time */ |
388 | response = MHD_create_response_from_buffer (rdc.off, | 388 | response = |
389 | rdc.buf, | 389 | MHD_create_response_from_buffer_with_free_callback (rdc.off, |
390 | MHD_RESPMEM_MUST_FREE); | 390 | rdc.buf, |
391 | &free); | ||
391 | mark_as_html (response); | 392 | mark_as_html (response); |
392 | #if FORCE_CLOSE | 393 | #if FORCE_CLOSE |
393 | (void) MHD_add_response_header (response, | 394 | (void) MHD_add_response_header (response, |