From df5b770e2123aa6edca8b6a9083723630a987072 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 18 Apr 2022 13:07:19 +0300 Subject: [PATCH] Fixed drop of 'const' when building internal error response --- src/microhttpd/connection.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 792337a4..eac75824 100644 --- 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