demo: updated to use the new API

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-08-31 11:33:04 +02:00
parent 06092dc444
commit e56d40a7a7
+2 -3
View File
@@ -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);
}