commit df5b770e2123aa6edca8b6a9083723630a987072 parent d3ae3c432d1d83bf5d300ca4670aa2626c574496 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Mon, 18 Apr 2022 13:07:19 +0300 Fixed drop of 'const' when building internal error response Diffstat:
| M | src/microhttpd/connection.c | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -2391,9 +2391,8 @@ transmit_error_response_len (struct MHD_Connection *connection, MHD_destroy_response (connection->response); connection->response = NULL; } - response = MHD_create_response_from_buffer (message_len, - (void *) message, - MHD_RESPMEM_PERSISTENT); + response = MHD_create_response_from_buffer_static (message_len, + message); if (NULL == response) { #ifdef HAVE_MESSAGES