libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 79b1d76e6775e5e42485a0cb794cb115e25fa338
parent 3a60c8a3a8bebfe12ca99478daf81bd620e2d479
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Fri, 27 Nov 2026 12:07:29 +0100

post_example: use "Content-Type: text/html" for 404 as well

Diffstat:
Msrc/examples/post_example.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/examples/post_example.c b/src/examples/post_example.c @@ -470,7 +470,7 @@ static struct Page pages[] = { { "/2", "text/html", &fill_v1_v2_form, NULL }, { "/S", "text/html", &serve_simple_form, SUBMIT_PAGE }, { "/F", "text/html", &serve_simple_form, LAST_PAGE }, - { NULL, NULL, &not_found_page, NULL } /* 404 */ + { NULL, "text/html", &not_found_page, NULL } /* 404 */ };