From e56d40a7a7cf425fcaafd26210a4a7e1bb53b503 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sat, 31 Aug 2024 11:33:04 +0200 Subject: [PATCH] demo: updated to use the new API --- src/examples2/demo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/examples2/demo.c b/src/examples2/demo.c index 1d36efab..d6c73a46 100644 --- a/src/examples2/demo.c +++ b/src/examples2/demo.c @@ -436,9 +436,8 @@ update_directory (void) rdc.buf); mark_as_html (response); #ifdef FORCE_CLOSE - (void) MHD_response_add_header (response, - MHD_HTTP_HEADER_CONNECTION, - "close"); + (void) MHD_response_set_option (response, + &MHD_R_OPTION_CONN_CLOSE (MHD_YES)); #endif update_cached_response (response); }