diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-12-08 02:50:58 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-12-08 02:50:58 +0100 |
| commit | 0f0ed8d77c2d080aefb0ed82e978c14d9b51d0a9 (patch) | |
| tree | df7207ce1a97a0bfea41f6ee8d6c4a5acc411bb1 | |
| parent | 6e467288fd41b72f867e7551daf3ee0e4b0a3173 (diff) | |
| download | arfnet2-search-0f0ed8d77c2d080aefb0ed82e978c14d9b51d0a9.tar.gz arfnet2-search-0f0ed8d77c2d080aefb0ed82e978c14d9b51d0a9.zip | |
content-type header
| -rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -183,6 +183,8 @@ enum MHD_Result answer_to_connection( response = MHD_create_response_from_buffer(strlen(buff), (void*)buff, MHD_RESPMEM_PERSISTENT); + MHD_add_response_header(response, "Content-Type", "text/html"); + printf("%d\n", 200); ret = MHD_queue_response(connection, MHD_HTTP_OK, response); MHD_destroy_response(response); @@ -309,6 +311,8 @@ enum MHD_Result answer_to_connection( /* send it */ response = MHD_create_response_from_buffer(strlen(buff), (void*)buff, MHD_RESPMEM_PERSISTENT); + + MHD_add_response_header(response, "Content-Type", "text/html"); /* cleanup */ if (results) |
